2,208,568 questions
Best practices
0
votes
1
replies
8
views
Best Way To Handle a Async Celery Task
I need some tips on how to best handle Celery task errors, implementing Graceful Degradation best practices. I thought about implementing try/except exception as e. But that's too simple, and I wanted ...
-4
votes
1
answer
43
views
Get this file updated on Google Colab [closed]
how to get the dataset available on webiste below:
https://www.gov.br/mdh/pt-br/acesso-a-informacao/dados-abertos/disque100/balanco-geral-2011-a-2019-populacao-lgbt/populacao-lgbt-comparativo-anual....
0
votes
1
answer
23
views
Plotly Express facets show no lines when setting x-axis range and custom tick labels
I have a dataframe with these columns:
id_pair (pair of sensors)
rssi_mean (detection strength)
contact_day (day of the detection as string, e.g. 'Monday')
study_week (week of the detection as ...
-5
votes
1
answer
76
views
Why am I getting this error TypeError: 'int' object is not callable? [duplicate]
Here is my code:
class Solution(object):
def missingNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
l = len(nums)...
Advice
0
votes
1
replies
19
views
JP2 image metadata copying for cv2 treatment
I tried different methods (gdal, glymur) to extract metadata from a jp2 image to process the image with cv2 (cv2 cuts off the metadata) and later reattach the metadata for further usage in other ...
0
votes
0
answers
50
views
Can Python install packages on a shorter path on Windows?
I am attempting to install the grpcio package, and seeing the following error:
(myvenv) C:\Work\Arch\Source\langchain-monitoring-demo>pip install grpcio==1.74.0
Collecting grpcio==1.74.0
Using ...
Advice
3
votes
5
replies
36
views
Open selected file with application? Like opening a .blend file from the file explorer
You know how you can open a .blend file and it automatically opens it in blender? How would I do that with my own python applications? Mainly, how would I get the file path into my program on the ...
-4
votes
0
answers
35
views
Mendeley Data API Issue Report [closed]
Dear Mendeley Data Support Team,
I am writing to report a critical issue with the Mendeley Data public API (data.mendeley.com) that is preventing me from programmatically accessing datasets.
Issue ...
1
vote
1
answer
46
views
ChainedAssignmentError when adding a conditional to a pandas dataframe
I keep getting a ChainedAssignmentError when adding a conditional to my code. In this basic example I am checking to see if column "one" is an "e" and if so then set the "...
0
votes
2
answers
46
views
Tokenizer configuration - MLX
I'm currently trying to load a model on MLX. But when I'm loading the model and use the tokenizer there is the following issue:
with an incorrect regex pattern: https://huggingface.co/mistralai/...
-3
votes
1
answer
77
views
create_access_token() takes 0 positional arguments but 1 was given [closed]
Please help me to understand the reason
My code is so and I recive this error, from the header
def create_access_token(**data: dict) -> str:
to_encode = data.copy()
expire = datetime.utcnow(...
0
votes
1
answer
50
views
PyInstaller Icon File
When I include my icon file using Pyinstaller, it compiles successfully but when I run the .EXE I get an exception stating the icon file cannot be found.
If I remove the icon reference from my script, ...
2
votes
1
answer
58
views
compute Sparce Matrix Standard Deviation python
I generated the following PCA plot with Python which I'm not really familiar with.
However, there is one things I don't like that is I'm not plotting the explained variance by PC1 and PC2. ...
-4
votes
0
answers
75
views
how to draw a time series graph with proper lables and texts in it [closed]
I wanted to make it specific to some language like java, python, c++, etc. But later I decided to keep it generic.
Actually, I am working on a task to create a UI that properly displays the data as a ...
0
votes
1
answer
70
views
Tkinter frame changes with buttons
I am a beginner with Tkinter, and I can't figure out how to change frames in my RPG game. In the code I sent, I am trying to close the welcome_frame and open it. By the way, I couldn't find how to ...