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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,924
» Latest member: Fobertsmene
» Forum threads: 38,719
» Forum posts: 175,490

Full Statistics

Online Users
There are currently 42 online users.
» 0 Member(s) | 32 Guest(s)
Bing, Google, AOL, Applebot, AOL, Facebook Dev

Latest Threads
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 2
» Views: 347
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
10 hours ago
» Replies: 7
» Views: 1,628
Python Installation issue
Forum: News and Discussions
Last Post: Dev
10 hours ago
» Replies: 4
» Views: 15,558
New to the field
Forum: News and Discussions
Last Post: Larz60+
Today, 08:15 AM
» Replies: 1
» Views: 286
Too much space between gr...
Forum: GUI
Last Post: deanhystad
Today, 02:34 AM
» Replies: 1
» Views: 318
Select Python comment (#)...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 01:34 PM
» Replies: 5
» Views: 624
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Yesterday, 06:11 AM
» Replies: 5
» Views: 1,407
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Sep-12-2025, 03:23 PM
» Replies: 4
» Views: 2,378
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 1,099
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,339

 
  Button to +1 in text box everytime it's clicked
Posted by: martyloo - May-01-2024, 12:24 AM - Forum: GUI - Replies (1)

Hello I have the following code that I want it to start counting from 0 adding 1 every time "pushbutton" is pressed and the value to be shown in "text..... More

Print this item

  Strange behavior list of list
Posted by: mmhmjanssen - Apr-30-2024, 05:13 PM - Forum: General Coding Help - Replies (3)

You can initialise a list containing 3 zeroes as follows:
mylist = 3*[0]

If you initialise a list containing 4 of such lists as follows:
mylist =..... More

Print this item

  two functions working in a strange way
Posted by: zapad - Apr-30-2024, 11:26 AM - Forum: General Coding Help - Replies (3)

[python]I am meeting a problem with 2 functions
The 1st one
the first function job: clean a string and
at the end, it calls the function def pi_dig..... More

Print this item

  How can I print from within actor(func) ??
Posted by: Pedroski55 - Apr-30-2024, 07:51 AM - Forum: General Coding Help - Replies (2)

I have the following example from here.

To help me understand what is going on, I like to put pri..... More

Print this item

  Python editor that will SFTP automatically on save
Posted by: sawtooth500 - Apr-29-2024, 10:15 PM - Forum: General Coding Help - Replies (1)

Can anyone recommend a python editor for Windows that will automatically upload my file to the server upon save via SFTP? I prefer a minimalist editor..... More

Print this item

Question Convert UTC now() to local time to compare to a strptime()
Posted by: Calab - Apr-29-2024, 04:56 PM - Forum: General Coding Help - Replies (2)

I have a string that contains a local time "2024-12-31 23:59:59". The local time is "America/Edmonton".

The time zone on my machine is UTC, so date..... More

Print this item

  PayrollSystem with file handling
Posted by: nikadry1 - Apr-29-2024, 01:16 PM - Forum: Homework - Replies (1)

I have a problem in exercise. I tried ai, to solve it but the issue didn't go away. Here you can find my code, expected output and my output. I always..... More

Print this item

  Urgent:help about prediction size
Posted by: kzbn - Apr-29-2024, 10:32 AM - Forum: Data Science - Replies (5)

Hi all,
I'm a bit new to pyhton. In my jupyter lab code, I'm working on time series project. The code below doesn't give last 2 prediction from test ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Visualizing musician chart performance and ranking using pandas and matplotlib
Posted by: Drone4four - Apr-28-2024, 05:26 PM - Forum: Data Science - Replies (5)

I am enrolled in a not for school credit Udemy course by Colt Steele on data anl[url=https://python-forum.io/thread-42047.html]..... More


Attached Files

Thumbnail(s)
       
Print this item

  [SOLVED] Loop through directories and files one level down?
Posted by: Winfried - Apr-28-2024, 01:10 PM - Forum: General Coding Help - Replies (3)

Hello,

Google didn't help.

On Windows, I need to loop through the directories one level below the start directory, and through all the files in ..... More

Print this item

  UART write binary code
Posted by: trix - Apr-28-2024, 08:37 AM - Forum: General Coding Help - Replies (3)

hello,

I am trying to send out a binary code with the UART.
with a hexadecimal code it works:
[code]
command = b'\x80'
scanner_uart.write(comm..... More

Print this item

  intering int number
Posted by: akbarza - Apr-28-2024, 07:42 AM - Forum: General Coding Help - Replies (1)

hi
in the below code:
[python]#from: https://realpython.com/python-assignment-operator/
''' to detemine intering range for integers'''

from plat..... More

Print this item

  How to solve this error "Exceeded 30 redirects" while using "nsepy" library
Posted by: PranayShah - Apr-28-2024, 03:08 AM - Forum: Data Science - Replies (1)

I'm getting this error named "Exceeded 30 redirects" while using "nsepy" library, when I'm trying to fetch data (plz reefer the screenshot)

[python..... More


Attached Files

Thumbnail(s)
   
Print this item

  negative memory usage
Posted by: akbarza - Apr-27-2024, 07:41 AM - Forum: General Coding Help - Replies (1)

hi
in the below code, after running, the usage of memory is shown as a negative number! why?
[python]
#from:https://blog.faradars.org/reduce-memory..... More

Print this item

  Program that calculates buildtime.
Posted by: xzenon - Apr-27-2024, 06:57 AM - Forum: Data Science - Replies (3)

Hi
I am trying to make a program to calculate build time with old data from previous build.
But its not working as intended.

When i put in lesser..... More

Print this item

  API design an choice
Posted by: Skaperen - Apr-27-2024, 12:58 AM - Forum: News and Discussions - Replies (4)

i am creating a group of functions that have a similar purpose across a list of file paths. i will look at four of them for this question although th..... More

Print this item

  Discord - Webcrapping from a Forum
Posted by: Tolska - Apr-26-2024, 12:27 PM - Forum: Web Scraping & Web Development - No Replies

Hello, I'm trying to get a a script to work but I'm having some issues. I need a bot to scrape the "Latest" post which has been posted on specific for..... More

Print this item

  TypeError: '>' not supported between instances of 'numpy.str_' and 'int'
Posted by: Anouar - Apr-26-2024, 09:34 AM - Forum: Data Science - No Replies

When I tried to run my python script, I got this error "TypeError: '>' not supported between instances of 'numpy.str_' and 'int'"

There are ..... More


Attached Files

Thumbnail(s)
       
Print this item

  How to edit Tkinter Minimize, Maximize, and Close Buttons
Posted by: kucingkembar - Apr-26-2024, 08:35 AM - Forum: General Coding Help - Replies (7)

sorry for my bad English,

1. in tkinter I tried to hide Minimize,
maximize button, but I only found :

Top.resizable(0,0)
what..... More

Print this item

  Why am I getting this error from Dave Beazly's programme?
Posted by: Pedroski55 - Apr-26-2024, 07:38 AM - Forum: General Coding Help - Replies (4)

This is from Dave Beazly's Generators: The Final Frontier here. Part 3, the example inline_recursive..... More

Print this item

  ModulNotFoundError matplotlib
Posted by: WicardBohnam - Apr-26-2024, 12:05 AM - Forum: General Coding Help - Replies (9)

I'm new to Python and have installed Python 3.12.3 with idle on Windows 10. Having had fairly good success with other scripts, I decided to try to co..... More

Print this item

  How To Make A PyQt5 Progress Bar Run While Executing A Function
Posted by: rcwildabeast - Apr-25-2024, 09:28 PM - Forum: GUI - Replies (1)

I am relatively new to PYQT5. I am implementing a progress bar. However, I have run into the issue where the pop up progress bar does not run at the s..... More

Print this item

  Problem Converting Tradingview Indicator to Python code
Posted by: kralxs - Apr-25-2024, 07:40 PM - Forum: General Coding Help - Replies (2)

Hello, I have been trying to convert the CCI-EMA indicator prepared with pinescript on Tradingwiev to Python code for about a week and filtering throu..... More

Print this item

  New on python. Needs help with Google sheet
Posted by: jeromep - Apr-25-2024, 06:26 PM - Forum: General Coding Help - Replies (1)

I'm new to coding.
I created the following code, but I cannot place the data entered in my Google Sheet file. JSON works.

The date must go in the ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Good way to ignore case when searching elements?
Posted by: Winfried - Apr-25-2024, 10:05 AM - Forum: General Coding Help - Replies (1)

Hello,

In the files I need to work with, I notice that the values in the following meta line can be either lower-case or capitalized.

What would be ..... More

Print this item

  using mutable in function defintion as optional paramter
Posted by: akbarza - Apr-25-2024, 08:26 AM - Forum: General Coding Help - Replies (8)

hi
I read some about using mutable(list or dict) in function definition as an optional parameter as this was discussed in the site realpython(its add..... More

Print this item

  Cucumber installation
Posted by: SDS - Apr-24-2024, 10:24 PM - Forum: General Coding Help - Replies (2)

I am getting an error message when I try to install cucumber when using the following command. Any assistance would be greatly appreciated.


>>>im..... More

Print this item

  Win or Loss Prediction
Posted by: ksasi2k3 - Apr-24-2024, 06:45 PM - Forum: General Coding Help - Replies (4)

I am trying to predict win or loss in ML using Python. Tried XGboost,Logistic and SVC method but getting struct in place where it says " estimators fa..... More

Print this item

  Python Project Structure for Modularity and Reusability with Multiple Entry Points
Posted by: b19wh33l5 - Apr-24-2024, 12:21 PM - Forum: General Coding Help - No Replies

I am massively confused about the approach I should take to organizing my project structure (see below) for my machine learning experiments. My projec..... More

Print this item

  how to edited Tkinter Toplevel from main form?
Posted by: kucingkembar - Apr-24-2024, 10:29 AM - Forum: General Coding Help - Replies (7)

i tried to edited Toplevel title, but after 2 hours i failed, please help
[python]from tkinter import *
def editedtoop(top):
top.title("Edited"..... More

Print this item

  Using xml.parsers.expat I can't get parser.ParseFile(f) to work
Posted by: Pedroski55 - Apr-24-2024, 05:31 AM - Forum: General Coding Help - Replies (3)

This code comes from Dave Beazly and it is a bit old, Python 2.something. I am trying to get it to work ..... More

Print this item

  watchdog on_modified
Posted by: CAD79 - Apr-23-2024, 01:47 PM - Forum: General Coding Help - Replies (3)

I'm creating a desktop application that notifies the user whenever a file has been modified, I've only just started using all of these modules and goi..... More

Print this item

Question [SOLVED] Right way to open files with different encodings?
Posted by: Winfried - Apr-23-2024, 08:49 AM - Forum: General Coding Help - Replies (3)

Hello,

Some of the files could be Windows (latin1, iso9959-1, cp1252), others could be utf-8.

Is try/except the right way to do it?

[python]#..... More

Print this item

  TypeError: Diagram.render() takes 1 positional argument but 2 were given
Posted by: sachin1361 - Apr-23-2024, 06:39 AM - Forum: General Coding Help - No Replies

I'm new to Python and used ChatGPT to generate a script that automatically creates a visual diagram after running terraform apply. The script (in diag..... More

Print this item

  Add NER output to pandas dataframe
Posted by: dg3000 - Apr-22-2024, 08:14 PM - Forum: Data Science - No Replies

I'm trying to write a script that will scan a document and add the extracted information to a dataframe, currently it just prints it and exits. Obvio..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data input while debuggin... 6 hours ago fred1232 deanhystad General Codin...
  New to Python and Pygame 10 hours ago JMcM JMcM Game Developm...
  Python Installation issue 10 hours ago RFHill Dev News and Disc...
  New to the field Today, 08:15 Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... Today, 02:34 RonR deanhystad GUI
  Select Python comment (#)... Yesterday, 13:34 SpongeB0B snippsat General Codin...
  I'm trying to make a piec... Yesterday, 06:11 Alislugacool MilesWeb General Codin...
  Seeking feedback: dynamic... 09-12, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575577
  Tutorial Requ... 496610
  Web Scraping ... 439652
  Newbie with P... 383270
  New Users Int... 364392
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8174
snippsat 7366
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Fobertsmene Today
jeremyn24503 Today
homataheri Today
Dev Today
RonR Yesterday

User Panel Messages

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