2,205,444 questions
Score of 0
0 answers
40 views
Github Regressions: Private dataset to Github
I am designing a CI workflow that require access to a private dataset that cannot be stored in the Github repository or downloaded by a Github-hosted runner.
Connection desired design: Github PR -> ...
Score of 0
0 answers
39 views
skl2onnx conversion for standalone RandomForestClassifier results in massive 41% accuracy drop due to list unpacking shape mismatch
I am converting a standard Scikit-Learn standalone RandomForestClassifier into an ONNX graph using skl2onnx. While my native Python script logs an expected accuracy of 0.7832 on the Titanic dataset, ...
Score of 0
0 answers
58 views
OSError: exception: access violation reading 0x0000000000000000
I am trying to install a python driver, snAPI, by which I will be able to control a piece of lab equipment, a time tagger. There is no apparent error when I pip install the driver, but when I run a ...
Score of -6
1 answer
132 views
Do I have to learn all types of functions in python [closed]
I am a beginner in Python , as I am learning different topics, the main problem I am facing is that I cant remember some functions or can't remember the keyword for that function. I have to look it up ...
Score of -7
0 answers
76 views
are data sturctures can that much methods for mapping [closed]
i have sample tuple and i have 1 type of value stored in list ,another is in set and 3rd is in dictionary so how to map and fill that
mean i have tuple named sample
sample = ("Shirt" , 799 , ...
Score of -5
0 answers
75 views
Excel file gets corrupted when updating destination workbook using Python for large Excel files [closed]
I'm using Python with pywin32 (COM Automation) to update an existing Excel workbook.
Environment:
Python 3.12
pywin32
Windows 11
Microsoft 365 Excel
The destination workbook is approximately 300–400 ...
Score of -2
0 answers
59 views
What is causing irregular spiking on training and validation loss with an ANN model tuned with HyberBand?
I have used Hyperband automatic tuning for an ANN model to predict price. After running the model with the automatic tuning, I am obtaining an R2 score of 1.00 that suggest overfitting, however, I am ...
Score of -2
1 answer
97 views
Limit character count in tkinter window? [closed]
I'm fiddling with a calculator tutorial using tkinter in Python and whenever there is a large number/decimal, it overflows off screen. How do I limit the character count to 15?
Sample code:
#window ...
Score of -3
0 answers
52 views
Printing list of zip-object prohibits conversion into dictionary [duplicate]
Python version 3.12.3
table = zip(range(3), "abc")
print(f"{table = }")
#print(f"{list(table) = }") #--- not executed
table = dict(table) # conversion into dictionary
...
Score of -3
0 answers
62 views
I got a "cannot import name '__version__' from 'pydantic_core' (unknown location)" error during ComfyUI bootup [closed]
I got the following during bootup, with an Error 1.
I had just installed Textacy and Spacy, which may have triggered this. I scoured the web for a fix, but no luck.
I am relatively green when it comes ...
Score of -1
1 answer
90 views
Behaviour of close button [duplicate]
I read that one can modify the function that the close button of an Tk root window uses. So I tried to implement one of my own but it's crashing and I don't quite understand why. It seems to not like ...
Score of 0
0 answers
35 views
"session not created" error with Selenium ChromeDriver started by Django
Whenever I try to start up Selenium ChromeDriver via Django on an Ubuntu server, I get a "session not created" error. The issue appears to be based on starting it with the Django process, as ...
Score of -4
0 answers
81 views
How to set the cursor of aiosql to use real dictionary instead of tuple of tuples? [closed]
Here is the code:
queries = aiosql.from_str(query, 'psycopg2', mandatory_parameters=False)
result = queries.get_top_n_artists_with_most_albums(dbr.dc, n=5)
print(tuple(result))
(('Iron Maiden', 21), ('...
Score of -1
2 answers
66 views
How to get body of the query using aiosql module? [closed]
I recently started to use aiosql module with PostgreSQL database.
Unfortunately, Google lagging behind with references to methods which no longer exist in aiosql.
Is it possible to get text of query ...
Score of -7
2 answers
99 views
How to find and replace specific values/text from a variable? [duplicate]
I have a variable which consists of a sys argument, however, it seems to also import [' at the beginning of the string, as well as '] at the end of the string (which I'd like to omit with a new ...