Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 votes
0 answers
13 views

How to check wether two mean values are significantly different?

I have two distributions with a size of ~120 and ~86.000 elements. I would like to check wether the mean value of the two distributions are significantly different. I found, that I can use a Welch’s t-...
cloudmanager's user avatar
0 votes
0 answers
8 views

Monitor progress of python from within c# using python.net

From within c#, I am executing python.net to build a RandomForestClassifier. After I have loaded the data and put it in a format for the classifier, using python.net I execute: scope.Exec("...
rka's user avatar
  • 13
0 votes
0 answers
3 views

INSTAGRAPI How can I check if I have liked/commented an specific media?

My real goal is to comment only on the posts that I've not commented yet and I thought about checking if I have liked it or not because every time I comment on a media a like it. I can't find a ...
Daniel Carneiro's user avatar
-5 votes
2 answers
33 views

what is the meaning of index[",i,"] in a loop?

what is the meaning of this part of my code? my code haven't any problem but i wanna know what is the meaning of this part of my code:) thank you! orginalString = input("enter the word: ") ...
amirgoodarzi's user avatar
0 votes
2 answers
20 views

How to annotate type of an `OrderedDict` that is initialized with literals?

Suppose I have the following: from collections import OrderedDict from dataclasses import dataclass @dataclass class HelloWorld: x: OrderedDict[str, int] a = OrderedDict([("a", 0), (&...
bzm3r's user avatar
  • 3,852
0 votes
0 answers
21 views

Pycharm function return typehint triggering false warning with sqlalchemy?

This Pycharm warning is driving me crazy :) def get_player_by_id(session: Session, player_id: int) -> Player: player = session.query(Player).get(Player, player_id) return player returns no ...
Nathaniel Rink's user avatar
-4 votes
0 answers
37 views

FOR loop Project [closed]

I am in a python coding class. I was asked to do a FOR loop project where the project reads the number or the name of an employee and pops the name with the pay of the employee. The range is 5. These ...
Francisco Javier's user avatar
0 votes
0 answers
37 views

Document AI - Processor location issue

I'm using a Mac and I have created a simple Document AI processor on the Google Cloud Platform (PDF splitter). This processor was trained, tested and deployed. I'm now desperately trying to make use ...
AlexCT's user avatar
  • 35
0 votes
0 answers
18 views

Trouble drawing a rectangle in kivy on a float layout screen

I do not understand kivy at all. I've watched so many tutorials and examples and for the life of me I still can't accomplish the simple task of drawing a rectangle on my kv screen. I've been trying to ...
Asterlux's user avatar
  • 179
0 votes
0 answers
15 views

Report contains control characters when run in cron

Running on Raspberry Pi with bookworm. I have some python code, "inxi_test.py" #!/home/pi/.venv/bin/python import subprocess ret = subprocess.run(['inxi -F'], shell = True, ...
Mick Sulley's user avatar
0 votes
3 answers
46 views

Python, pandas parse number and string from string

In Python, I want to parse a string and return the numeric portion (may or may not have decimal point) as a float and return the suffix as a string. Examples are: 7.1inch -> 7.1, inch 7.1” -> 7....
tosa's user avatar
  • 411
0 votes
0 answers
5 views

Alicat Mass Flow controller setup MCS-1SLPM-D-MODTCPIP-PCA14

hello I am currently working on a MFC from Alicat using Pymodbus and I keep encountering this error Successfully connected to the Modbus server Reading Mass Flow from address 1209 Unexpected number of ...
Johnny Trevino's user avatar
0 votes
0 answers
11 views

RuntimeError: mat1 and mat2 shapes cannot be multiplied (100x768 and 2048x768)

I am trying to find similarity scores between the encodings of the image and prompt (which is the label of the image). I am new to machine learning, I realise that there is an issue with some shape of ...
Time's user avatar
  • 107
0 votes
0 answers
11 views

I am trying to add pytest to my test but I got collected 0 items message in terminal

from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.edge.service import Service import pytest @pytest.fixture() def wrong_login_test(): website = 'https:/...
Bernardo Cabrera's user avatar
-2 votes
0 answers
17 views

how to iterate efficiently through files in order to concatenate them to one dataframe

The data is the physionet 2019 data. It consists of about 40 000 patient records. One file stands for one patient and i want all data in one dataframe. I have read that when I want to concatenate ...
Ali Fayad's user avatar

15 30 50 per page
1
2
3 4 5
��
147042