2,206,500 questions
Best practices
0
votes
1
replies
17
views
pip install oracledb takes ~9 minutes on Alpine (musl) because no musllinux wheel, how to avoid building from source in Docker?
I'm building a Django app inside a Docker image based on python:3.13-alpine3.23 as part of a GitLab CI pipeline.
After replacing cx-Oracle==8.3.0 with oracledb==3.4.2 in requirements.txt, the pip ...
Advice
0
votes
0
replies
22
views
Team radio clips unavailable via the end-point of F1
I've been working on a personal project and wanted access to the team radio clips of all the drivers for the project.
I was able to find and access them via the https://livetiming.formula1.com/static/ ...
-2
votes
0
answers
46
views
Simulate MS Office save using Python [closed]
I want to generate an Excel file and upload it to a website that only accepts .xlsx and .xls, but when I generate Excel using Pandas or Polars I am facing "invalid excel file" exception and ...
Advice
0
votes
2
replies
54
views
postEfficient mapping between index and permutation for very large n
I am exploring methods to compute a specific permutation from its index (ranking/unranking) without generating all permutations.
My focus is on very large values of n (e.g., up to 1000), where full ...
-5
votes
0
answers
44
views
Python In worlde [closed]
Good night all I'm a noob at python and just learned PyQt5 and trying to make A Pokémon Wordle in it I'm trying to center the first label using the set alignment feature in pyQt5 here's the code
...
3
votes
0
answers
39
views
Conditionally running tasks in Airflow
I'm trying to write a DAG that conditionally executes another task. The simplified version of what I'm working with is this:
to_be_triggered = EmptyOperator(task_id="to_be_triggered")
@task....
Advice
1
vote
2
replies
102
views
What does the future holds for programmers
Good day everyone,
I'm honestly feeling a bit lost right now and could really use some advice about my career, my growth, and my place in programming.
This is my background: I work with an ...
2
votes
1
answer
78
views
How to calculate the mean value of a variable on a specific day of the year over several years
I have an xarray DataArray that contains daily data for every day from 1970 to 2023 for the months October through March, and I want to calculate the average value of the variable for each day (e.g. ...
1
vote
1
answer
87
views
Fastest rolling window method for datetime
I'm currently trying to apply a bit of a convoluted function to a rolling window of 30 minutes on time data within a loop, and I'm finding that it's taking too long to be reasonable.
I've included a ...
-6
votes
0
answers
56
views
Trying to convert every .jfif file to a .png file in the directory the .py file will be on [duplicate]
import os, glob
directory = os.path.dirname(os.path.abspath(__file__))
for fname in os.listdir(directory):
if 'jfif' in fname:
filename, file_extension = os.path.splitext(fname)
...
-1
votes
0
answers
49
views
Python 3.13 cannot import _win32sysloader.pyd from pywin32 (correct hash, correct wheel)
Windows 10 laptop
Python 3.13.5 x64
pywin32 311
I installed pywin32 using:
py -m pip install --user --no-cache-dir pywin32
pip downloads:
pywin32-311-cp313-cp313-win_amd64.whl
Python details:
py -c &...
-5
votes
0
answers
46
views
automatic extraction and filling of purchase invoices, drafts and checks; I also w [closed]
hello i have a file pdf , png, .. .I want to correct my Python code according to my need for automatic extraction and filling of purchase invoices, drafts and checks; I also want to increase image ...
Advice
0
votes
4
replies
66
views
Moving Average in python
I am working with the Marmousi velocity model and I would like to apply a moving average filter to smooth the velocity variations. My goal is to reduce high-frequency noise and create a smoother ...
-1
votes
1
answer
77
views
base64 to hex conversion with spacer in the result [closed]
I have a sensor which creates raw hex data that is looking like this:
DD 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2FE 0 0 0 1F4 1FA 123 141 F0E F56 F56 12 0 154B 0 264 F53 2FC6 A2D CEC
C8 F 0 0 0 ...
Best practices
0
votes
11
replies
77
views
What to use when moving from static json files ( Javascript ) to database in FrontEnd
I was hoping to get some help with my little project where I noticed that I would need to be using Database instead of local Json files to deal with frontend dynamic content.
So I have a dropdown ...