2,206,492 questions
0
votes
0
answers
10
views
How to maintain scale when rotating?
I've been messing around with OpenGL/ModernGL in Python/Pygame, and after getting my images rendered to the screen, I have been having issues rotating them.
I'm aware of the order that I need to ...
-1
votes
0
answers
18
views
PyCharm 2026.1.1; Build #PY-261.23567.174 - Syntax Error?
In the following line, both "sep" and "end" are highlighted in red which seems to indicate some sort of error. However, the code runs fine. What does the red highlighting mean on ...
Best practices
0
votes
2
replies
25
views
SQL-Test-123456789_question
What sql function will display first 4 terms in a string. string are of 10-25 in total length. string can be number or letters. results should be sorted in descending order. data is for hockey ...
Tooling
0
votes
3
replies
47
views
Why is the code not working, even after import ing it
from selenium.webdriver.support import expected_conditions as EC
import time
\# 1. Setup Service and Driver
service = Service('C:/Users/HP/Desktop/Drivers/chromedriver_win32/chromedriver.exe')
driver ...
Advice
0
votes
2
replies
22
views
With the aiosmtpd python3 module, how to get the IP address of the remote connection?
I'm using the latest aiosmtpd module under Python 3.12 in LinuxMint 22.3.
When a remote SMTP connection is made to a host running aiosmtpd, how can the remote IP address of this connection be obtained ...
-8
votes
1
answer
53
views
Disabled Command But Still Works. (discord.py) [closed]
enter image description here I've been debugging and refactoring this alot, and I still havent found a fix for it.
The purpose of this command is to: disable a specific command on a guild only not ...
Advice
0
votes
5
replies
78
views
Is yml easier then python?
I know it seems like a very stupid question, but my brother said it was easy, so I wonder now if yml is easier than python. He says it's just remembering names and values which does make it seem ...
Advice
1
vote
3
replies
61
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
3
replies
49
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
59
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
65
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....
1
vote
2
answers
64
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
34
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 ...
-4
votes
0
answers
53
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
57
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 ...