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,393
» Latest member: aurelio12282025
» Forum threads: 38,821
» Forum posts: 176,018

Full Statistics

Online Users
There are currently 35 online users.
» 1 Member(s) | 25 Guest(s)
Applebot, Bing, Facebook, Google, Mojeek

Latest Threads
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 80
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 238
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,073
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,899
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 140
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 85
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 153
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,298
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 114
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 757

 
  resetting an iterator to full
Posted by: Skaperen - Feb-17-2022, 01:32 AM - Forum: General Coding Help - Replies (7)

if you iterate a list twice, the 2nd time has all the data from the beginning. but what if you have a case where the data can be figured out as an it..... More

Print this item

  Rename part of filename in multiple files
Posted by: atomxkai - Feb-17-2022, 12:14 AM - Forum: General Coding Help - Replies (7)

Hello, I'm trying to replace part of a text in a filename for multiple files. But it is not working. Your help is greatly appreciated.

Example:

..... More

Print this item

  can someone test the code for me
Posted by: kucingkembar - Feb-16-2022, 07:42 PM - Forum: General Coding Help - Replies (4)

hi, I have this code;

[python]
try:
import translators
except:
import subprocess#for window 10
subprocess.call("pip in..... More

Print this item

  how to extract tiff images from the subfolder into. hocr format in another similar su
Posted by: JOE - Feb-16-2022, 06:28 PM - Forum: General Coding Help - No Replies

HI,
I am working on a project to OCR text from tiff images, the below code works fine on individual images, but I am looking for a solution where I c..... More

Print this item

  Max recursion depth.... Error
Posted by: MeloB - Feb-16-2022, 04:58 PM - Forum: General Coding Help - Replies (2)

Hi All,

brand new to Python so appreciate the help. I am trying to add a new column, which should be calculated as the mean of 'math score' grouped..... More


Attached Files

.csv   StudentsGrades.csv (Size: 791 bytes / Downloads: 322)
Print this item

  Errors when trying to disable tkinter checkbutton
Posted by: rrick_88 - Feb-16-2022, 02:42 PM - Forum: General Coding Help - Replies (7)

[python] Hello,

I am having an issue disabling a tkinter checkbutton. I am able to get the value, but when trying to disable it I keep getti..... More

Print this item

  user interface Button not working
Posted by: Frankduc - Feb-16-2022, 02:07 PM - Forum: General Coding Help - Replies (4)

Hello,

Cant understand why i get this error message. Anyone can give me an explaination?

[python]from tkinter import *

def inverser():
mot = st..... More

Print this item

  ConfigParser(dict_type=) not behaving as expected
Posted by: malonn - Feb-16-2022, 01:21 PM - Forum: General Coding Help - Replies (5)

I am using the configparser module. I am having trouble understanding the

ConfigParser(dict_type=)
method. My code:
[python]class ..... More

Print this item

  Real time database
Posted by: satyanarayana - Feb-16-2022, 07:41 AM - Forum: General Coding Help - Replies (3)

Hi friends,

I am new to python how to develop real time database to store data . For example like firebase database storage.

In python how can..... More

Print this item

  extract javascript links
Posted by: Larz60+ - Feb-16-2022, 02:56 AM - Forum: Web Scraping & Web Development - No Replies

Using selenium, I navigate to a results page which contains javascript links to additional results.
The html looks like:
[output]
<tbody><tr>..... More

Print this item

Sad Iterate randint() multiple times when calling a function
Posted by: Jake123 - Feb-15-2022, 10:38 PM - Forum: General Coding Help - Replies (2)

When I call the stars() function, it only iterates the randint() function once and not every time the while loop is ran. I am unsure on how to make it..... More

Print this item

  Post Python to HTML/CSS
Posted by: Extra - Feb-15-2022, 09:15 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I'm trying to build a GUI for a python script I have using HTML/CSS, and I'm wondering if it's possible to link python to my HTML page.
Fo..... More

Print this item

  kwargs question
Posted by: Jeff_t - Feb-15-2022, 07:25 PM - Forum: General Coding Help - Replies (8)

Hi, I am really new to python and wishing I had gotten into it a lot earlier than I did. I have advanced considerably with my learning and have been u..... More

Print this item

  Creating a GUI for Point Cloud visualisation
Posted by: khablt96 - Feb-15-2022, 04:41 PM - Forum: GUI - Replies (6)

Hello everyone, i need to create a interface for the visualisation the Point Cloud (PCD-Format), i tried with this code but it`s doesnt work.
Normall..... More

Print this item

  Loop through a list of string
Posted by: oldtrafford - Feb-15-2022, 01:34 PM - Forum: General Coding Help - Replies (3)

I have this code and i want to loop through the number of cases in the list "Cases". here i put an example with 3 elements in the list.
how can I para..... More

Print this item

  [solved] iteration + df.loc
Posted by: ju21878436312 - Feb-15-2022, 08:14 AM - Forum: General Coding Help - Replies (2)

I'd like to iterate through the lines by a for loop.
And when the condition "df['col2'] == "second"is true, I'd like to do some calculations in this..... More

Print this item

  permutations of varying length
Posted by: Skaperen - Feb-15-2022, 01:22 AM - Forum: News and Discussions - Replies (4)

i need to create permutations of N letters. but i also need all lengths in range(1,N+1), N just happens to also be the number of letters to be..... More

Print this item

  REST API x.509 authentication
Posted by: crossover - Feb-14-2022, 11:34 PM - Forum: General Coding Help - Replies (1)

Hi, new poster here! Been working with Excel, VBA and PowerQuery for a few years now and really wondered what's all the fuss about Python. I work a lo..... More

Print this item

  Exercise about Matplotlib
Posted by: Raselrameda - Feb-14-2022, 07:48 PM - Forum: Homework - Replies (2)

This is just an Exercise and I did it but I have some errors. I attached my file. Could you help me, please?

Write a Python program through the fol..... More


Attached Files

.py   Section 5 Matplotlib Exercise.py (Size: 1.64 KB / Downloads: 357)
Print this item

  Matplotlib multiple set_over / under
Posted by: G_rizzle - Feb-14-2022, 12:13 PM - Forum: General Coding Help - No Replies

Hey,

I'm plotting gradients of a surface. Most of them lay between 0 -1, but there are also a few from 1 - 700.

Right now im coloring gradients ..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to accumulate volume of time series
Posted by: amdi40 - Feb-14-2022, 11:10 AM - Forum: Data Science - Replies (3)

Hello, I am working with a time series containing rain. the data looks like

intensity
0.1
0.2
0.1
0.1
0.0
0.0
0.2

And I want to be able t..... More

Print this item

  how to add two numbers and pass the result to the next page in tkinter?
Posted by: pymn - Feb-14-2022, 02:11 AM - Forum: GUI - Replies (7)

I am new to tkinter. I want to add two numbers and pass the result to the second page. in my code, I don't understand why instead of adding the number..... More

Print this item

  Flow Control Help
Posted by: RoadToSensei - Feb-13-2022, 08:04 PM - Forum: General Coding Help - Replies (5)

I am having a hard time programming a Rock Paper Scissors Code:
[Python]
import random, sys
Wins = int()
Losses = int()
Ties = int()
print ('Let..... More

Print this item

  Cannot get pygame.JOYBUTTONDOWN to register
Posted by: dboxall123 - Feb-13-2022, 07:01 PM - Forum: Game Development - Replies (4)

Hello all,

I'm messing around with a usb joystick I got online, and I cannot seem to get pygame to register it. I have written the following, simpl..... More

Print this item

  Python code to read second line from CSV files and create a master CSV file
Posted by: sh1704 - Feb-13-2022, 05:52 PM - Forum: General Coding Help - Replies (1)

I have a folder lets say as 'input_Folder' which has a list of CSV files with data. I'm trying to write a python code which reads this list of CSV fil..... More

Print this item

  Can this run faster?
Posted by: duckredbeard - Feb-13-2022, 04:15 PM - Forum: Code Review - No Replies

I need help making this run faster. It takes about 7 seconds for the lights to respond when I open or close the door. I'm thinking lines 24-26 and ..... More

Print this item

  Convert string to int
Posted by: Frankduc - Feb-13-2022, 03:47 PM - Forum: General Coding Help - Replies (8)

Hello,

Trying to sum string numbers to int, but there is a ; between them.

[python]tab = input("Éntrez les nombres entiers séparés par des (;) :..... More

Print this item

  Pygame and tkinter
Posted by: seteg - Feb-13-2022, 01:28 PM - Forum: General Coding Help - Replies (1)

I keep getting the error message "AttributeError: type object 'Tk' has no attribute 'tk' when trying to start my program. I have tried to change lette..... More


Attached Files

.py   testing.py (Size: 3.41 KB / Downloads: 318)
Print this item

  What are some good books for learning NumPy and Pandas?
Posted by: Pnerd - Feb-13-2022, 01:02 PM - Forum: General Coding Help - Replies (1)

What are some good books for learning NumPy and Pandas after learning the basics of Python? And which one should I start learning first – NumPy or Pan..... More

Print this item

  ## Its part of my boot camp Task
Posted by: Raselrameda - Feb-13-2022, 08:55 AM - Forum: Homework - Replies (7)

Write a Python program through the following steps:
1. Create a list variable, names, which contains the names of three of your friends.
2. Create a..... More

Print this item

  Excel to Python
Posted by: AntonioCruz - Feb-12-2022, 10:52 PM - Forum: General Coding Help - Replies (2)

Good evening all

I'm brand new to Python and trying to use the following excel array formula
'=SUM(IF(SUMIF($A3:$H3,K1:M1),1))' and I dont know ho..... More

Print this item

  Can't get tkinter button to change color based on changes in data
Posted by: dford - Feb-12-2022, 10:06 PM - Forum: GUI - Replies (4)

I'm trying to get a "Save" button color to change color if any form data has been changed. I got this to work once before but misplaced my flash driv..... More

Print this item

  Use ranking function for different lists
Posted by: klatlap - Feb-12-2022, 09:19 PM - Forum: General Coding Help - Replies (6)

Hi.

I have a function that i use to rank a list from highest to lowest, right now it is hard coded to one list, what i would like to be able to do ..... More

Print this item

Question Having trouble writing an Enum with a custom __new__ method
Posted by: stevendaprano - Feb-12-2022, 10:32 AM - Forum: General Coding Help - Replies (3)

I have an enum subclass where I need to associate two pieces of data with each enum. The first is used for the enum value itself, the second needs to ..... More

Print this item

  [split] [split] New to the forum, how to post a question?
Posted by: karnik - Feb-12-2022, 08:02 AM - Forum: General Coding Help - Replies (2)

Please find my code , I am getting below error

[python]class it :
def rec (self,c,id,ac,bd,ad,bc):
return (c + id)(ac - bd) + (ad + bc)

a ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to Integrate External... Yesterday, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... Yesterday, 16:06 eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
Most views
  The best Prog... 580379
  Tutorial Requ... 519175
  Web Scraping ... 442772
  Newbie with P... 386955
  New Users Int... 386299
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aurelio12282025 Today
bejaminmaarleyo1374 Today
taylorlitleoz476 Today
desy845 Today
atalieyandext4063 Yesterday

User Panel Messages

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