Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
45 views

How do I extract dictionary key values from every level into a dataframe? I used pd.json_normalize but it doesn't suit my needs since it puts the previous keys as prefixes. This is what I tried import ...
jan22321's user avatar
0 votes
0 answers
20 views

I am currently working on GitGarden, a CLI tool that draws your repos as plants. I want the branching/forking of Github repos to be mimicked in my program, like how trees branch off in real life. To ...
Ezra Aslan's user avatar
-6 votes
0 answers
34 views

I'm working on a prototype for a voice-enabled assistant as part of my Applied Research I course project. The goal is to create a conversational system that collects user profile data (e.g., name, ...
JAY CHOKSI's user avatar
-3 votes
0 answers
25 views

I just got a requirement where we need to ingest two types of LinkedIn learning reports ”Learner summary and learning details reports “ with XSIAM in its automation & feed integration section. ...
Barinder Kumar's user avatar
2 votes
0 answers
27 views

This is Fedora 43. Python 3.14 I can create and retrieve a shelf in a command line with no errors: #!/usr/bin/env python import shelve shelf = shelve.open('/tmp/my_shelf', flag='c', writeback=True) ...
Clodoaldo Neto's user avatar
Advice
1 vote
0 replies
19 views

I have a list of 1,000 Twitter handles and I need to check if each user has tweeted a specific keyword at least once. Since the Twitter API Free tier no longer allows reading user timelines or ...
mala fama's user avatar
-3 votes
0 answers
38 views

I want to fetch within a python script all negative written opinions from all family members of an Israeli patent application, along with their corresponding set of claims. I consulted Gemini and ...
user4861528's user avatar
-3 votes
1 answer
112 views

I am trying to add all numbers from 1 to 100 using a for loop (1+2+3 etc.) I have got this nice little function here but for some reason it seems to not work. Is there a fix? for i in range(1, 101): ...
KonstantinTheGoose's user avatar
Best practices
0 votes
0 replies
9 views

I am working with Dagster to automatize a data pipeline. I have set and defined an asset, that should automatically start when there is no previous materialization or an update is needed. The ...
Miguel Alvarez's user avatar
0 votes
0 answers
14 views

I am writing a Python program on a python 3.10 venv using cv2 and mediapipe libraries but once I add any mediapipe code my program does not open a window to my camera/ my camera does not turn on ...
ezpzweezy97's user avatar
2 votes
1 answer
55 views

Making a program to automatically make cards by pasting text and images onto a template and saving it as an image. Everything works, but the images' colors are inverted. I have tried disabling dark ...
Shawn Guthrie's user avatar
2 votes
0 answers
14 views

I wrote a simple Halide generator in python, and compiled it webAssembly. I want it to use interleaved RGB image data as input and output. Here is what it looks like: import halide as hl x = hl.Var('...
ThomasV's user avatar
  • 21
-4 votes
0 answers
17 views

I'm making a chapter selection area and every input leads to chapter one/start2. I don't know what I'm doing wrong. I think the main issue is around the def and start functions. When I go to input ...
Gil's user avatar
  • 1
-1 votes
0 answers
63 views

I'm working on a project that involves generating random data according to a wide variety of specific distributions. The number of sample points to generate can go up to hundreds of thousands, ...
Blackyu Sylvean's user avatar
-2 votes
0 answers
17 views

from googletrans import Translator, constants from pprint import pprint from PIL import Image import googletrans import pytesseract import pyautogui import time import os file_number = 1 file_name = ...
Dexter Knight's user avatar
0 votes
0 answers
46 views

I'm trying to program a MANOVA analysis in Python, but I'm running into a problem regarding the number of variables I'm trying to analyze. When I run the following code: fit = MANOVA.from_formula(&...
JDoe's user avatar
  • 11
1 vote
1 answer
37 views

How do i wrap lines in the editor in Spyder 6? I recently updated my Spyder, and it seems the functionality to wrap lines has disappered. Here is a screenshot of Tools -> Preferences -> Editor, ...
EmilA's user avatar
  • 189
1 vote
0 answers
37 views

im trying to integrate telegram oauth into my application, currently it successfully log in in telegram, but django doesnt received any data in callback, I have tryied many methods, but without any ...
Gor Barseghyan's user avatar
0 votes
0 answers
45 views

I am using scipy.optimize.minimize with trust-constr algorithm to run the optimization. The goal is quite standard: optimizing the weights w of a portfolio under some constraints, w0 being the weights ...
Aristide's user avatar
0 votes
1 answer
42 views

It seems that I am missing something about how Beautiful Soup (4.14.3) executes CSS selectors on its `bs4.element.Tag` objects. I select an element, call another selector on the element, and the ...
xealits's user avatar
  • 4,830
Advice
0 votes
2 replies
20 views

There are a large number of images that need to be uploaded to my organization’s website. Currently, it takes a significant amount of time to manually classify each image into categories such as tower,...
Sylver Star's user avatar
0 votes
2 answers
35 views

I’m facing an issue while trying to download a job artifact from one GitLab project into another using GitLab CI/CD. What I’m trying to achieve In the project A, I want to improve CI testing by: ...
achu prasad's user avatar
-2 votes
1 answer
55 views

I have two lists of dictionaries in Python, and I need to merge them into a single list based on a shared key (e.g., id). My Data: Python list_a = [ {'id': 1, 'name': 'Alice'}, {'id': 2, 'name'...
洪敬愷's user avatar
-2 votes
0 answers
22 views

Setup details: Celery 5.x Command: celery -A app worker -c 5 Broker / backend: Redis Server RAM: 1GB Observed behavior: Worker memory steadily grows during task execution At ~200–250MB RSS, the ...
Prince Suriya's user avatar
-1 votes
0 answers
24 views

I am trying to solve the “Minimize the Heights II” problem from GeeksforGeeks using Python. The problem gives you a sequence of tower heights and requires modifying each tower height by either ...
ArunKumar Muthuvel's user avatar
-1 votes
1 answer
40 views

I'm struggling to figure out how to call the base class implementation of stringification in Python. The following illustrates what I am attempting to do: class A: def __init__(self, text): ...
Jeff G's user avatar
  • 4,729
-2 votes
0 answers
25 views

But why does it still give an output when both the start and end index are not present as index. (as in the image). This behavior is similar to position based rather than label based enter image ...
Anhad003's user avatar
-2 votes
0 answers
27 views

I am using version 6.0.0 in Docker Desktop and tried to embed a dashboard in a simple .html file through iframe. But it says localhost refused to connect whenever I am tying to execute the HTML file....
sayan paul's user avatar
0 votes
1 answer
50 views

I have these two models (I've trimmed away extra fields to keep it readable): class Forum(LegacyBase): __tablename__ = "forums" id: Mapped[int] = mapped_column("forumID", ...
Rohit's user avatar
  • 3,242
-9 votes
0 answers
35 views

A text file SCHOLAR.txt contains student academic records. Each record is stored on one line in the following format: RollNo@Name@Class@Section@SubjectCodes@Marks Where: RollNo → integer (no gaps ...
wizard's user avatar
  • 1
Best practices
1 vote
2 replies
32 views

I am writing (in Python) a function for import and use in another program. This function takes standard Python data structures as input, e.g., list of strings, and outputs a numpy array based on the ...
TheSenate's user avatar
  • 101
-3 votes
0 answers
39 views

My design in dash changed without me asking for it. I'm using: app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP]) And that gave me this design: But for some reason it changed and now ...
Francisco Augusto Varela Aguir's user avatar
1 vote
0 answers
31 views

After a lot of digging and trying to sort out the older interface API from the gimp 3 version. I find I'm stuck. I'm using the code below to try to select a triangular area. The code runs in the ...
Michael Trombley's user avatar
4 votes
1 answer
81 views

I'm on Win11 and have a relative Path instance for which is_dir() returns False: >>> s = "../../../a/b/c" >>> p = pathlib.Path(s) >>> p.is_dir() False >>> ...
mayaknife's user avatar
  • 344
0 votes
0 answers
37 views

I'm trying to train a character-level GRU on Linux kernel source but the training loop keeps crashing with this error: RuntimeError: view size is not compatible with input tensor's size and stride (...
user avatar
Advice
0 votes
2 replies
34 views

I have made a Python function that simulates a cash withdrawal from an ATM, checking for the correct PIN and sufficient balance before processing. I have defined a function called cash_machine with ...
Ruby Pepper's user avatar
0 votes
0 answers
34 views

It's not recommended in the current scope to download NSSM, and we have used sc create for other services before. However, it seems that sc create is having trouble actually accessing the API. I've ...
user30589464's user avatar
1 vote
2 answers
85 views

I'm using two excel files (each file for the years 2024 and 2025) and combining the files through Pandas. I discovered this issue when checking the sums that my program outputs and comparing them to ...
Hayden Wilcox's user avatar
0 votes
0 answers
42 views

I want to get the kernel template that cupy uses for its subtract function to compare with my (really simple) kernel: subtract_kernel = cp.RawKernel( """ extern "C" __global__ ...
mle's user avatar
  • 101
0 votes
1 answer
36 views

I am trying to iterate through a list of Urls find some elements, one of which is a list of other Urls. I then want to, in the same overarching loop iterate through the second list of Urls and find a ...
Nip's user avatar
  • 67
0 votes
0 answers
18 views

I have been trying to test OTEL auto instrumentation for Python and been having trouble getting metrics, traces, and logs to all be properly exporting consistently. I have been attempting this will ...
Shane Sanborn's user avatar
-1 votes
0 answers
26 views

I want to paginate over potentially thousands of objects. I want to offer users a list of buttons they can pick. The list depends on a search of a database and the number of buttons could be between 0 ...
pileofrogs's user avatar
Best practices
0 votes
2 replies
19 views

I’m building a backend workflow runner where each job is a sequence of steps (mix of pure compute and side-effects like HTTP calls, DB writes, file uploads). If the process crashes mid-step, the job ...
Bodhi Silberling's user avatar
3 votes
2 answers
65 views

Mypy triggers the following error: Incompatible return value type (got "tuple[int | None, ...]", expected "tuple[int | None, int | None, int | None, int | None, int | None, int | None, ...
Marcel Wilson's user avatar
0 votes
0 answers
30 views

When creating buttons, you assign them an 'action_id' and a 'value'. The action ID is also the name of the function called when the button is pressed. I want to offer multiple buttons with the same ...
pileofrogs's user avatar
0 votes
0 answers
22 views

I have one scenario where the parallel airflow tasks are 5 and from same topic i am trying to consume data but with different group ids, like 0,1,2,3,4 appended to group ids all 0,1,3,4 parallel tasks ...
Pavithra Naga Yallapu's user avatar
1 vote
2 answers
50 views

I am working in Python in a Google Colab notebook and using google_colab_selenium. Trying to push the "Load More" button on this page: https://www.rottentomatoes.com/m/inside_out_2/reviews. ...
lapeliroja's user avatar
1 vote
1 answer
39 views

I have a Keras model with multiple output layers. I want to have a loss function, that computes a loss based on two of the model output layers. Can I do this in a simple way, without using a custom ...
Siemen Aulich's user avatar
-1 votes
0 answers
26 views

Consider the following: from invoke import task @task def expose_secrets(c): secrets = c.run('pass some/path/to/my/secret', pty=True) Run this with uvx invoke expose_secrets And then start ...
Wayne Werner's user avatar
  • 52.4k
3 votes
0 answers
48 views

I am developing a library that requires 'zero-touch' installation to inject a .pth file directly into the environment's site-packages directory (lib/python3.x/site-packages). While I am using Poetry ...
Harsh Singh's user avatar

1
2 3 4 5
44168