2,206,487 questions
Advice
1
vote
2
replies
32
views
Python layout: how to draw a box around a frame?
I'm new to Python and am working with GUI's and layouts. I've got the hang of the basic layout widgets and adding buttons and things to them. How would I make a classic box around a layout of buttons ...
Tooling
1
vote
2
replies
16
views
Extract game names and translate them to english from google sheet
Here's example of my dataset
I am working on a dataset (Excel / Google Sheets) where each row contains free-text answers about video games.
The problem is that the data is very noisy:
Some rows ...
0
votes
0
answers
41
views
OSError: [WinError 1114] when importing a library in python
I am using Python 3.11.7 on Jupyter Notebook. I am trying to install the library transformers in Jupyter with pip install transformers It has a dependency on package torch and I have torch version 2....
Tooling
0
votes
1
replies
56
views
Have pandas warn when operation causes exception on some rows, but continue processing valid rows
We have a python script that (in large part) manipulates data with pandas. Recently, a small amount of input data was malformed and the whole thing crashed when an exception was thrown within `pd....
-13
votes
0
answers
117
views
How to bypass the CPython abstraction tax for ultra-high-speed CSV ingestion (2GB/s+)? [closed]
I’m working with massive structured datasets (10M+ rows) where ingestion speed is the primary bottleneck. Using standard pandas.read_csv (even with the C engine), I’m hitting a performance ceiling of ...
1
vote
1
answer
49
views
Fusing row with previous row(s) depending on criteria
I'm trying to fix a CSV file I received in which actual new lines were inserted throughout the data, effectively splitting one row of data into multiple ones with incomplete columns. The line breaks ...
1
vote
1
answer
30
views
Error in calculating the RSI and SMA by the talib
An error occurs when executing the code. The def indicators(df, N) function is not executed. This is a snippet of code, I'm trying to repeat after the author from YouYube. I get this error:
TypeError ...
-3
votes
0
answers
46
views
How to Enahnce the predictions of LSTM model
I'm working on small project using the modern portfolio theory for portfolio optimization, the final required output is a recommendations on which assets to buy and how much to buy.
to achive that ...
Tooling
1
vote
0
replies
48
views
Airflow use cases for different repos
I am newbie in Airflow and I use currently task scheduler on remote desktop to automate our tasks but it is based on my credentials and I cannot share with other team members, so I clone all projects ...
0
votes
1
answer
36
views
numba unsupported opcode FORMAT_WITH_SPEC
I am getting an error when using numba/jit.
Here's the function:
@jit(nopython=True)
def find_map(nodes1, nodes2, feather2, verbose=False):
def conndirections(i1,i2):
dr1,dr2=[0,0,0,0],[0,...
Best practices
0
votes
1
replies
52
views
In Django, where to define user
For a site where users host discussions communicate with each other like on X(twitter), using Django, where should i define a user; in the forms.py, models.py or views.py file. This site will work ...
-4
votes
1
answer
61
views
TypeError: 'NoneType' object is not subscriptable? [duplicate]
The code is
print(score.sort(reverse=True)[:3])
And it makes an error
TypeError: 'NoneType' object is not subscriptable
What is the problem?
2
votes
1
answer
63
views
Issues with redirecting output text to a separate window in Python
I am very, very new to programming having just finished a semester-long course on Python. I wanted to take an existing program I had written for my class and redirect all the output text to a separate ...
0
votes
2
answers
77
views
MySQL query fetchall() result
I am currently trying to make a nested MySQL query using Python. But I am a bit confused about how the respond to a query that comes in a weird format with "()" and "," rather than ...
Tooling
0
votes
1
replies
38
views
Dockerized Streamlit RAG with Native Ollama & GPU/CPU Hybrid Logic
I am building a RAG Study Assistant and need advice on finalizing my Docker setup. I have a specific architecture in mind to maximize performance and portability.
The Architecture:
App: Streamlit + ...