Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
65 views

I installed matplotlib, tried to run the program, and get an error: Traceback (most recent call last): File "C:\Users\kystepa2\Desktop\NEXTSY_PROJECT\TEST\mtsa\plot_metrics_mtsa.py", line ...
Konstantin Stepanov's user avatar
0 votes
0 answers
56 views

We process government tax report templates using Python + openpyxl. Recently, the template provider released v2.1 with new sheets. Our code works fine, but generated files now show Excel's recovery ...
rishav arora's user avatar
1 vote
2 answers
636 views

Im trying to get data from a parquet file using SQL syntax. The code: import polars as pl # Ensure the variables are defined parquet_file = r'C:\Users\Kperez\Documents\md_curated_20250115.parquet' ...
qarly_blue's user avatar
2 votes
2 answers
99 views

I would like to get a value_of implementation for the StrEnum (Python 3.9.x). For example: from enum import Enum class StrEnum(str, Enum): """Enum with str values""" ...
SkyWalker's user avatar
  • 14.5k
0 votes
0 answers
117 views

Modin DataFrame Merge Issue After dropna on Categorical Column: I'm encountering an issue when using Modin to merge DataFrames that contain categorical columns. The issue arose after I performed a ...
Sumukha G C's user avatar
0 votes
1 answer
82 views

I used scorecardpy function to get a model: import scorecardpy as ac card=sc.scorecard(bins_adj, lr, X_train.columns) Then I tried to save this model using following code: import numpy as np np.save('...
zjh1001's user avatar
  • 29
0 votes
1 answer
30 views

after I run the code it still will be 15 even if the input isn't yes or Yes. I'm new to Python - can anyone please help me? The statement: if stuffed == "yes' or "Yes" : price = 15 ...
Julian Cani's user avatar
0 votes
1 answer
45 views

I get read, that you can place the scollbar to the LEFT in .pack() layout manager, but I can't find a working solution for .grid() layout manager. The description in my book say I should use sticky = '...
Paul-ET's user avatar
  • 316
0 votes
1 answer
128 views

I create a treeview inside a tab from ttk.notebook widget. I followed this description for addapt the size of the treeview table. I saw also the .pack solution, but I will not mix .grid and .pack(). I ...
Paul-ET's user avatar
  • 316
1 vote
2 answers
667 views

I've created a virtual environment of Python3.9 with Pycharm but when I try to install the packages in requirements, I get this error: Error: Traceback (most recent call last): File "/snap/...
Palinuro's user avatar
  • 350
-4 votes
1 answer
51 views

m1 is a global variable in collect_finetuning.py: m1: list = [] When I run collect_finetuning.py via: if __name__ == "__main__": main() We see this behavior, where a function in ...
Yelnar Blats's user avatar
2 votes
1 answer
2k views

We have a solution deployed on AWS where an EC2 instance uses docker files to build images for different components. One of those components has a docker script we haven't changed in over a year that, ...
David McClure's user avatar
1 vote
1 answer
29 views

I can't understand, what benefits we get when adding models.ManyToManyField if using intermediary model? Is it necessary? I want to use base (not custom) user model in my project. Should I redefine ...
Artem Balanov's user avatar
0 votes
1 answer
221 views

I am trying to install pytrec_eval package using this command python -m pip install pytrec_eval but it fails with the following error: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] ...
Betty's user avatar
  • 268
0 votes
1 answer
111 views

I want to create a custom class for the tkinter button class. However when I run my code the button doesn't appear on my window. The programme doesn't throw any errors either. Running on Mac on python ...
Dylan Haigh's user avatar
0 votes
0 answers
244 views

I want to install tensorflow_federated package in VS Code in Windows 10 by using 'pip install tensorflow_federated' command. My python version is 3.9.0. But I get this error: WARNING: Ignoring invalid ...
Hanieh Jalali's user avatar
2 votes
0 answers
441 views

With python 3.12 I got the error: SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)') But with python 3.9 its working ...
yash's user avatar
  • 41
2 votes
0 answers
211 views

I have been working with PySpark and distributed computing to do work with dataframes that involve querying PI I have been working with the User Defined functions and have managed to get a semi ...
Michael C.'s user avatar
1 vote
2 answers
52 views

I am a beginner at programming on Python. I made a program with Chatgpt that I don't fully understand, but I know that I want to make many more if-else statements without making it complicated with ...
Python Coder's user avatar
0 votes
0 answers
160 views

I am using Python 3.9 on Linux. The python installation structure looks like: /tools/python/bin - containing python executable /tools/python/lib/libpython3.9.so /tools/python/lib/python3.9/lib-...
user2695082's user avatar
0 votes
0 answers
45 views

I'm trying to write a utility that will allow me to query a database, display the returned data and then allow the user to double click on one item to load/expand it. I've come up with the class below;...
David Shaw's user avatar
0 votes
0 answers
71 views

I am using code to read file from AWS s3 bucket using boto3, throwing error "Not a gzipped file (b'\xef\xbb')" even if filename is ends with .gz and the content type is also application/x-...
Pranav Kokate's user avatar
0 votes
2 answers
606 views

This has been asked 1000 times before, but nothing seems to work for me. Using Python3.9 and VScode, though I have tested it making edits with just the plain TextEdit app on mac as well. I cloned this ...
Ian 's user avatar
  • 95
-1 votes
1 answer
1k views

i'm trying to use this code i found online to translate images with Google Translate in bulk # Args: # input_dir: The directory containing the images to be translated. # output_dir: The ...
YeetDabMcFapDab's user avatar
1 vote
2 answers
135 views

Having an XML like this: <?xml version="1.0"> <!DOCTYPE us-application SYSTEM "us" []> <us-application lang="ENG" dtd-version="v4"> <us-...
Juliana Rivera's user avatar

1
2 3 4 5
23