Skip to main content

Questions tagged [python]

Python is a dynamically typed, multi-purpose programming language. It is designed to be quick to learn, understand, and use, and enforces a clean and uniform syntax. Note that Python 2 reached end-of-life on January 1st, 2020. For version-specific Python questions, add the version tag (e.g. [python-3.x] or [python-3.9]). When using a Python variant (e.g. Jython, PyPy) or library (e.g. Pandas, NumPy), please include it in the tags.

python
1 vote
0 answers
9 views

Solving CORS issues between my fastapi and flutter application

I have a fastapi server running in my local network and want to make a request to that server using flutter. I am allowing all origins inside my main.py app = FastAPI(lifespan=lifespan) origins = [ ...
jack's user avatar
  • 27
0 votes
0 answers
10 views

Send a QNetworkRequest with a parameter

I want to send multiple QNetworkRequests in Python 3.12 that each downloads one image from a server, using a single callback function. To be able to distinguish between these images I also want to add ...
Neph's user avatar
  • 1,933
0 votes
0 answers
6 views

Passing Additional Information in LangChain abatch Calls

Given an abatch call for a LangChain chain, I need to pass additional information, beyond just the content, to the function so that this information is available in the callback, specifically in the ...
TantrixRobotBoy's user avatar
0 votes
0 answers
14 views

ValueError: setting an array element with a sequence when running Linear Regression model

I am doing a Kaggle competition on predicting house sales using regression models. I have converted the catagorical data into a float using OneHotEncoder using a pipeline. However I keep getting the ...
Red_bull's user avatar
0 votes
0 answers
7 views

Datetime format and time data not matching timestamp format errors in traceback log =

Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in \_run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py&...
nandos96's user avatar
-6 votes
0 answers
32 views

It's pretty easy find the problem for the #python code [closed]

row=" " while len(row)==0: rows= int(input('How many rows?: ')) columns= " " while len(columns) == 0: columns= int( input('How many columns?: ')) symbol= " " ...
T.A.G.AHUTS's user avatar
0 votes
0 answers
13 views

How to get requirements from my Airflow python environment

How to perform pip freeze > requirements.txt for Airflow environment? Or get list of packages by another way. Airflow v. 2.8.2 installed with Docker.
John Doe's user avatar
  • 309
0 votes
0 answers
8 views

how to display images and predictions Confution Matrics

I have Code Like this you can visit GitHub, the whole thing is similar, just the architecture and dataset are different https://github.com/cendekialnazalia/CaisimPestDetection/blob/main/Percobaan%20E%...
Ali Mustadji's user avatar
-4 votes
1 answer
24 views

PIP Installation issue

I've been trying to upgrade pip from 22.3.1 to 24.1.2 and here is the error message I get: ERROR: Exception: Traceback (most recent call last): File "C:\Users\Dsaxl\AppData\Roaming\Python\...
KronZ's user avatar
  • 1
-1 votes
0 answers
11 views

Extract data from StackOverflow Enterprise

I want to extract question and answer from PayPal stackoverflow. So for that I was thinking to use a API and extract the data. But here I am not sure how to login when using the GET request. I am ...
Shubham Shekhar's user avatar
-4 votes
1 answer
12 views

Dealing with long context prompts in mistral 7B

I am working with Mistral 7B model on Kaggle notebooks. In my case, I will pass information to the prompt and I want the model to extract the functional needs from the document. For example, I pass it ...
rayenpe12's user avatar
0 votes
1 answer
16 views

Making POST requests and Scraping JS-generated content in Python

So, to scrape the content of a page that is dynamically generated in vue-app tag, I firstly need to log-in with credentials, which is done by POST request. The problem is that for successful login, I ...
prosyanoy's user avatar
0 votes
0 answers
18 views

Code package or algorithm that finds roots of nilpotent matrices (when they exist)? [closed]

I'm curious about automatically calculating roots B=ⁿ⎷A, where n is an integer larger than 1, and A is a square nilpotent matrix. I.e. find at least one square matrix B such that Bⁿ=A, or report that ...
MRule's user avatar
  • 576
0 votes
1 answer
19 views

Subtract two images using alpha channel in python OpenCV

I want to subtract one image from the other using the first one's alpha channel. The problem is really hard for me to explain by words, so please bear with me and my art. Imagine that I have the ...
Sand dan Glokta's user avatar
0 votes
0 answers
13 views

PySpark basic question - who runs the Python code and how after all?

I am following a course on Spark. I installed and so I now am running Spark on Windows. I got to the point where I submit a python script via spark-submit to Spark. Say the script is x.py. from ...
peter.petrov's user avatar

15 30 50 per page
1
2 3 4 5
146821