2,208,429 questions
Best practices
0
votes
0
replies
6
views
Most practical data structure for successive levels of filtering
I'm writing a program to find substitution ciphers of a test_phrase that themselves are valid English phrases.
Example: test_phrase = 'x marks the spot' → ['a whole sky ends', 'I stage our echo', ...]
...
Advice
1
vote
2
replies
11
views
Missing symbol auto import functionality in Jupyter Notebook
When writing python code in a jupyter notebook, I often have to remember the exact imports for the libraries I'm using or copy pasting them. When using an IDE, you will usually get a red squiggly line ...
2
votes
1
answer
42
views
Conversion from HuggingFace dataset to Pandas DF causing dropped 'string' columns
I am attempting to convert a dataset loaded from HuggingFace into a pandas DF so I can process the data. However, despite having no null values (as many prior issues point to) , all non-numeric ...
0
votes
0
answers
22
views
Fabric OneLake file-created trigger not starting pipeline + trouble passing file path parameter
I'm new to Fabrci Pipeline with basic Python scripting skills.
I’m trying to build an event-driven Fabric pipeline: when a JSON file is uploaded to Lakehouse Files/inbox/, a trigger rule should run my ...
0
votes
0
answers
26
views
Important region of object for object detection
I am using yolo model to detect object. I am intrested in the parts of the objects and background that lead to that detection to solve this I tried Grandcam and EigenCam however the results of the ...
0
votes
1
answer
72
views
How do type aliases (typing.Tuple, typing.Set, typing.List, etc.) work as an instance but also a class?
How do the type alias classes (pseudoclasses?) such as typing.Tuple work?
They behave like instance objects since their constructors take arguments
But they also behave like class objects: they ...
1
vote
0
answers
10
views
Odoo 19 Upgrade: UI menus not loading due to "inconsistent states" on Odoo.sh
I am performing an upgrade from Odoo 16 Enterprise to Odoo 19 on Odoo.sh. The build is successful and the registry loads without crashing [cite: 2026-01-23].
The Problem: Upon login, the web interface ...
1
vote
0
answers
25
views
st-aggrid checkboxes stop updating after deployment (works locally)
Problem:
The app works locally but after deployment in azure, for some users the checkbox renders but selecting rows / toggling boolean does not update selected_rows or the returned data. Because ...
-6
votes
0
answers
84
views
How to implement email verification using OTP in FastAPI (Python)? [closed]
I am learning the FastAPI framework for backend development, but I am stuck at this point on how to verify the use while registering in my system.
My intended flow is:
User submits registration data (...
3
votes
0
answers
75
views
Python - Client getting stuck when sending async generator to server over httpx
I've got this client script:
async with cur.copy("""COPY (SELECT {COLUMNS} FROM totals) TO STDOUT WITH (FORMAT text)""") as copy:
async def batcher():
i = 0
...
0
votes
1
answer
67
views
Python code same as docstring in code editor [closed]
In VS Code my Python code is formatted with the correct colors.
When I look at the same code on Code Editor in Sagemaker it all has the same color as a docstring.
I’ve tried different encoding, end of ...
-1
votes
0
answers
52
views
Selenium login flow for Exa.ai fails with “The login page was accessed incorrectly” after submitting verification code
import os
import time
import requests
import random
import string
import re
from datetime import datetime
from docx import Document
from selenium import webdriver
from selenium.webdriver.chrome....
Best practices
0
votes
4
replies
43
views
Truthy modulo vs explicit comparisons: Which Gregorian leap year solution is better Python? (learning Python)
I'm learning Python and wrote one working solution for checking if a year is a Gregorian leap year. Which is considered better practice?
My solution:
year = int(input("Enter a year: "))
if ...
-4
votes
0
answers
60
views
Problem posting data to the UK CMA Fuelfinder API [closed]
The UK government have launched the Fuel Finder scheme which requires every petrol filling station in the UK to submit fuel prices within 30 minutes of them being changed at the pumps. The API details ...
Best practices
0
votes
1
replies
11
views
scatter(x, broadcast=True) vs replicate(x)
I am trying to understand the difference in Dask between
scatter(x, broadcast=True) and replicate(x).
Both seem to provide a way to ensure copies of data is available in all nodes.
Are they actually ...