2,209,216 questions
0
votes
0
answers
6
views
ResourceExhausted: 429 with "limit: 0" on Gemini API Free Tier (LangChain) even after new project
I am trying to use the Google Gemini API with langchain-google-genai in Python. I want to use the Free Tier, so I created a fresh project in Google AI Studio (without linking any billing account).
...
0
votes
1
answer
13
views
How can I handle missing values in a large pandas DataFrame without running out of memory?
I’m working with a large pandas DataFrame (~5 million rows, ~40 columns).
When I try operations like:
df = df.fillna(0)
# or
df = df.dropna()
my RAM usage spikes and sometimes my Jupyter notebook ...
-3
votes
0
answers
16
views
Identify the document is real or fake using AI Model [closed]
I have a business requirement where I have to build a AI model to validate the uploaded documents are real or fake.holograms will be there on the documents. Please provide me the steps to acheive this
-3
votes
0
answers
16
views
What is the Global Interpreter Lock (GIL) in Python and why does it prevent true multithreading? [duplicate]
I’ve been reading about Python’s Global Interpreter Lock (GIL), and I’m a bit confused about how it actually works behind the scenes.
From what I understand, the GIL allows only one thread to execute ...
-8
votes
0
answers
44
views
How can I make everything in a customtkinter window automatically resize when I resize the window? [closed]
import tkinter as tk
import customtkinter as ctk
# ===============================
# CONFIGURATION GLOBALE
# ===============================
ctk.set_appearance_mode("dark")
ctk....
-4
votes
1
answer
68
views
Executed line confusion
In the Python program below:
a = 3
if a > 10:
print("gt10")
elif a > 5:
print("gt5 lt10")
elif a > 2:
print("bw25")
else: # Line 9
pass
when I ...
-4
votes
0
answers
32
views
Should I apply random flip and rotate transformations along the depth axis for 3D medical imaging? [closed]
I am working with the Medical Segmentation Decathlon (MSD) Task 1 brain dataset where each volume has shape (H=240, W=240, D=155, C=4) (height, width, depth, 4 channels).
I'm building a data ...
-3
votes
0
answers
22
views
packet tracer iot system code not running in programming of iot device ( code in python ) [closed]
so when i run the code it just says
Blink (Python) stopped.
Starting Blink (Python)...
why ?
i don't need to show the code of each file cuz it's gonna be too long
u may need the pic of the iot syst ...
0
votes
0
answers
20
views
Error writing stac catalog with pystac: datetime, tzinfo error
The notebook exploring this issue can be found here.
https://github.com/worldbank/GOSTrocks/blob/fathom/notebooks/FATHOM/PROCESSING_NOTEBOOKS/generate_fathom_vrts_and_STAC_catalog.ipynb
I am trying to ...
-4
votes
0
answers
29
views
Tuple not immutable? [duplicate]
In this exercise I expected A) ([0],) to be the correct answer because a tuple is immutable:
import copy
def fun(c1, c2, c3):
c1[0].append(1)
c2[0].append(2)
c3[0].append(3)
a = ([0],)
...
0
votes
1
answer
29
views
How can I enforce environment-specific Python dependency constraints in a monorepo using a single CI pipeline without duplicating workflow logic?
I’m working with a Python monorepo that contains several applications and shared libraries.
Each environment (dev, staging, prod) requires different dependency constraints.
For example:
dev allows ...
-4
votes
1
answer
30
views
When are user permissions ready? - trying to assign permission in post-migration signal
Fairly new to django so there must be a lot I have no idea about.
How can I assign user related permissions to user groups in a post migration signal?
I have read everywhere that post migration signal ...
Advice
0
votes
1
replies
23
views
Building a Task automation tool using OCR and Icons detection with logics setup by persons in Python
Hii I need some suggestions I am planning to build a Specific task performing bot services thing. so far I have build a program that uses OCR for text detection and if that text is there it does the ...
0
votes
0
answers
35
views
Combining similar alternative grammar definitions
I am attempting to scan specific names from a CDL file (a variant of SPICE) which is a line oriented syntax. Superficially, regex would work, but is in fact more complex given the full language ...
1
vote
1
answer
37
views
Problem installing gpaw with pip in windows
I’m trying to install gpaw so I can learn to do some dft calculations. However, when trying to install it in windows in the cmd with pip I get the following answer:
Collecting gpaw
Using cached gpaw-...