Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 48 online users.
» 0 Member(s) | 43 Guest(s)
Bing, AOL, Google, Applebot

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
7 hours ago
» Replies: 4
» Views: 114
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 99
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 73
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 111
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,097
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,366
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,558
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 189
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,198
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,443

 
  Convert string to float problem
Posted by: vasik006 - May-27-2022, 07:15 PM - Forum: General Coding Help - Replies (8)

Hi, I have a problem converting a string to a float. The program receives data from Arduino via the serial port and processes it. But I'm getting this..... More


Attached Files

Thumbnail(s)
   
Print this item

  Basic PyQt6 Example of a timer
Posted by: menator01 - May-27-2022, 05:24 PM - Forum: Code sharing - No Replies

[python]from PyQt6.QtWidgets import (QApplication, QWidget, QLabel, QPushButton, QMessageBox, QGridLayout,
QMainWindow)..... More

Print this item

  Python 100 line Challenge
Posted by: codingCat - May-27-2022, 02:14 PM - Forum: Code sharing - Replies (9)

The goal of the 25 line challenge was to see how much could be squished into a very minimal space. It was amazing to see how low people could go. I w..... More

Print this item

  [SOLVED] [ElementTree] Grab text in attributes?
Posted by: Winfried - May-27-2022, 12:21 PM - Forum: General Coding Help - Replies (3)

Hello,

I'm not very good at XPath, and am a bit lost at the..... More

Print this item

  Help needed with a "for loop" + error handling
Posted by: tamiri - May-27-2022, 11:28 AM - Forum: General Coding Help - Replies (2)

I would like to iterate over a list of items.
In each round, Python is checking the latest Excel file in a folder, opens it, and saves it.

Upon an..... More

Print this item

  How to filter a table view using SortFilterProxyModel
Posted by: DrakeSoft - May-27-2022, 10:44 AM - Forum: GUI - Replies (8)

Hi,

I have tried to create a sample program to help me figure out how the SortFilterProxyModel works in PyQT.

[python]

from PyQt5.QtWidgets import ..... More

Print this item

  How can I add certain elements in this 2d data structure and calculate a mean
Posted by: TheOddCircle - May-26-2022, 08:09 PM - Forum: General Coding Help - Replies (3)

[python]
# ------------------------------------------------------------
# Import libraries
# ------------------------------------------------------..... More

Print this item

  How to get list of exactly 10 items?
Posted by: Mark17 - May-26-2022, 01:24 PM - Forum: General Coding Help - Replies (1)

I'm getting a traceback on this line:

[Python]
axs[1].set_xticks(list(range(1,len(btstats.index),len(btstats.index)//(len(xtick_labels_converted)-..... More

Print this item

  scatter3D different markers per data
Posted by: erdemath - May-26-2022, 01:09 PM - Forum: Data Science - Replies (5)

I have an issue with data visualization in 3D scatter plot. I have regionally stratified some data, say data_A, data_B, data_C. I need to display them..... More


Attached Files

Thumbnail(s)
   
Print this item

  Best books for programming
Posted by: katy1234 - May-26-2022, 12:47 PM - Forum: News and Discussions - No Replies

Hi, Good Day
This is Katy Steven. I am in first year of my engineering and lots of programming language I am learning here. I am very exited about le..... More

Print this item

  migrate code from tkinter to pygame
Posted by: Frankduc - May-26-2022, 12:04 PM - Forum: General Coding Help - Replies (16)

Hi,

I already post about this but i am totally lost i have no clue how to make it work. I am unable to make my button work in tkinter. So i have to m..... More

Print this item

  QT Designer
Posted by: Krissstian - May-26-2022, 06:16 AM - Forum: GUI - Replies (4)

Hi,
First of all I'm new in Python.
I have made with QT Designer a gui for my project an convert it into .py with external tool from PyCharm.
The b..... More

Print this item

  HELP PLS i cannot figure out why this error is happerning
Posted by: StruckGuide8154 - May-25-2022, 09:27 PM - Forum: Data Science - No Replies

here is my code error:
Traceback (most recent call last):
File "C:\Users\harrison.DESKTOP-QMMSLCP\ai\ai.py", line 111, in <module>
words = pi..... More

Print this item

  Accessing same python script from multiple computers
Posted by: bigrockcrasher - May-25-2022, 06:29 PM - Forum: General Coding Help - Replies (1)

I currently work in a facility that uses a very large ZFS using the NFS protocol. We have many servers that are running a variety of Linux distributio..... More

Print this item

  Python to DLL
Posted by: tcomponent - May-25-2022, 05:56 PM - Forum: General Coding Help - Replies (2)

Hi, Python Forum Smile

I'm a new member here. And also new in Python.
My name is Stephanus, you can call me Steven, from Indonesia.

I wou..... More

Print this item

  Popups
Posted by: Axel_Erfurt - May-25-2022, 05:13 PM - Forum: Board - Replies (5)

Is it possible to turn off the popups with the content of the post? They're really annoying.

Print this item

  User-defined function to reset variables?
Posted by: Mark17 - May-25-2022, 02:31 PM - Forum: General Coding Help - Replies (3)

Hi all,

A general outline of my program could be written as something like this:

[Python]
Variable initiation (reset)

Control branch A

..... More

Print this item

  Reordering output messages
Posted by: paulo79 - May-25-2022, 02:02 PM - Forum: General Coding Help - Replies (4)

Hi all,

I have a script where I do a loop condition and show ERROR or OK messages depending of each line return. Example:
[python]for v_count_gds..... More

Print this item

  No collision video
Posted by: Gribouillis - May-25-2022, 01:38 PM - Forum: News and Discussions - Replies (1)

I came across this nice youtube video showing non colliding balls moving in a plane. The progra..... More

Print this item

  Clean Up Script
Posted by: rotw121 - May-25-2022, 09:45 AM - Forum: General Coding Help - Replies (2)

Hi Everyone, I am new to Python and jumping into automating certain processes. Learning so much.

One of the scripts I am working on is figuring out..... More

Print this item

  Code review of my rock paper scissors game
Posted by: Milan - May-25-2022, 06:59 AM - Forum: Code Review - Replies (2)

Hello team,

I would like to submit my rock paper scissors game for code review. Any suggestion on how to improve it is more than welcome.

[pytho..... More

Print this item

  Trying to parse only 3 key values from json file
Posted by: cubangt - May-24-2022, 09:04 PM - Forum: General Coding Help - Replies (8)

So im playing around with parsing a json file in python.
Im able to read in the file and print it to the console, but now i want to extract 3 values ..... More

Print this item

  PyCon 2022
Posted by: snippsat - May-24-2022, 07:48 PM - Forum: News and Discussions - No Replies

[Image: 1*mXCpIzzJNFuGZyJGf4qnSw.png]
Her is the ..... More

Print this item

  Coding and IDE
Posted by: prodrumernate - May-24-2022, 07:10 PM - Forum: General Coding Help - Replies (5)

i learn better by writing and doing than just reading.im using sololearn to learn python.i couldnt even write the code for a simple calculator..so i t..... More

Print this item

  FFT - sum of amplitudes
Posted by: frohr - May-24-2022, 05:34 PM - Forum: General Coding Help - No Replies

Hi,
I have 30k samples and I make FFT.
Size of amplitudes in FFT is ok.
But I want make sum of all amplitudes and here I can see wrong number. F..... More

Print this item

Question how to solve `'TypeError: 'int' object is not iterable`?
Posted by: netanelst - May-24-2022, 11:02 AM - Forum: General Coding Help - Replies (2)

[python]
def CSVR():


x52=[""]
x166=[""]
if request.method == 'POST':
f = request.files['file']
l8=range(48,58)
..... More

Print this item

  Python converted EXE not working
Posted by: Rajasekaran - May-24-2022, 10:06 AM - Forum: General Coding Help - Replies (1)

I have created a tool for OCR the content from the TIFF images and its working fine when executing from the source code.
However when executing the s..... More


Attached Files

.py   OCR.py (Size: 765 bytes / Downloads: 264)
Print this item

  using variables with functions imported from different files.
Posted by: Scordomaniac - May-24-2022, 09:29 AM - Forum: General Coding Help - Replies (3)

hey, I'm trying to run a function from a different file in my main file. this isn't working as the function won't load variables across files, how can..... More

Print this item

  Help with TypeWriter Effect in Python Rich
Posted by: Extra - May-23-2022, 09:43 PM - Forum: General Coding Help - No Replies

Hello,

I'm trying to have the text look like it's being typed live on the screen using the typewriter effect. I got it to print to the terminal the w..... More

Print this item

  Detecting float or int in a string
Posted by: Clunk_Head - May-23-2022, 08:39 PM - Forum: General Coding Help - Replies (15)

The str.isnumeric() function is lacking when it comes to detecting floats.
Several sites say to use a try/except to attempt the conversion. I was tau..... More

Print this item

  Python newbie
Posted by: laleebee - May-23-2022, 07:26 PM - Forum: General Coding Help - Replies (2)

Hi all.
A little bit about me: 20 years ago, I worked in house for an investment bank. Despite not having a coding background I ended up using Per..... More

Print this item

  signal anti-aliasing
Posted by: frohr - May-23-2022, 05:18 PM - Forum: General Coding Help - No Replies

Hi,
I am reading signal from ADXL1005 with ADS1256 24bit ADC to Teens4.0.
I have sample rate 30000 and I read 30000 samples.
I have no problem with..... More

Print this item

  Help adding prompt text in a Layout using Rich TUI
Posted by: Extra - May-23-2022, 04:16 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm trying to put my Login Screen inside a Panel or Layout using Rich (Rich Link)[url=https://python-forum.io/thread-37285.html]..... More

Print this item

  [Solved]Make certain columns Un-editable in QtSql
Posted by: Extra - May-23-2022, 03:06 PM - Forum: GUI - Replies (7)

Hello again,

I'm trying to figure out how to make my SellPrice, ID, Quantity, & Date columns Un-editable/read-only when you click on their columns ..... More

Print this item

  Multiple Loop Statements in a Variable
Posted by: Dexty - May-23-2022, 08:36 AM - Forum: General Coding Help - Replies (1)

I'm quite familiar with:

for i in range(n):
	for j in range(n):
		print(i, j)
and
[python]
myVar = [i for i in range(n)]..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 7 hours ago Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578695
  Tutorial Requ... 509169
  Web Scraping ... 441845
  Newbie with P... 385797
  New Users Int... 375097
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020