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,441
» Latest member: happyhippo
» Forum threads: 38,552
» Forum posts: 174,699

Full Statistics

Online Users
There are currently 459 online users.
» 1 Member(s) | 453 Guest(s)
Bing, Google, Applebot, buran

Latest Threads
Grok Acedemy Sport Microb...
Forum: Homework
Last Post: happyhippo
2 hours ago
» Replies: 0
» Views: 35
Build Fast, Type-Safe API...
Forum: Tutorial Requests and Submissions
Last Post: Mido
10 hours ago
» Replies: 0
» Views: 63
Python script not working...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Yesterday, 03:24 PM
» Replies: 3
» Views: 178
How to understand object-...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 03:21 PM
» Replies: 3
» Views: 234
Picamera2 commands betwee...
Forum: General Coding Help
Last Post: deanhystad
May-01-2025, 07:39 PM
» Replies: 1
» Views: 203
PyVisa Query Command fail...
Forum: General Coding Help
Last Post: deanhystad
May-01-2025, 04:58 PM
» Replies: 1
» Views: 193
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
May-01-2025, 03:46 PM
» Replies: 2
» Views: 181
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
May-01-2025, 03:43 PM
» Replies: 2
» Views: 298
CSV reader with PyQt6
Forum: Code sharing
Last Post: Axel_Erfurt
May-01-2025, 11:38 AM
» Replies: 3
» Views: 226
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: snippsat
May-01-2025, 07:00 AM
» Replies: 8
» Views: 430

 
  Filer and sort files by modification time in a directory
Posted by: tester_V - May-02-2024, 03:57 AM - Forum: General Coding Help - Replies (5)

Greetings!
I need to filter files by file names, sort by the last modification time and process them.
I got this code but it does not work.
[python..... More

Print this item

Brick looking for a Coding Partner
Posted by: sahorier - May-01-2024, 08:28 AM - Forum: Bar - Replies (1)

I am a new learner. Now I am learning Python. But I think having a coding partner boosts learning interest. Now I am looking for a coding partner with..... More

Print this item

  Excel isnt working properly after python function is started
Posted by: IchNar - May-01-2024, 06:24 AM - Forum: General Coding Help - Replies (2)

I have a Python application that can create a graph based on input that the user enters into a form(GUI) that is created via Tkinter. This application..... More

Print this item

  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 (1)

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Grok Acedemy Sport Microb... 2 hours ago happyhippo happyhippo Homework
  [Django] Build Fast, Type... 10 hours ago Mido Mido Tutorial Requ...
  Python script not working... Yesterday, 15:24 texwilson47 noisefloor Web Scraping ...
  How to understand object-... Yesterday, 15:21 snl_9527 noisefloor General Codin...
  Picamera2 commands betwee... 05-01, 19:39 GigiG deanhystad General Codin...
  PyVisa Query Command fail... 05-01, 16:58 dazz deanhystad General Codin...
  [SOLVED] [Beautiful Soup]... 05-01, 15:46 Winfried Winfried General Codin...
  [SOLVED] [Beautiful Soup]... 05-01, 15:43 Winfried Winfried General Codin...
  CSV reader with PyQt6 05-01, 11:38 suburbanprojects Axel_Erfurt Code sharing
  where should DEFAULT_CIPH... 05-01, 07:00 Skaperen snippsat General Codin...
  what name to give to a ne... 04-30, 21:39 Skaperen Skaperen News and Disc...
Most views
  The best Prog... 557691
  Tutorial Requ... 425446
  Web Scraping ... 423185
  Newbie with P... 351478
  Thread remain... 325354
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12036
buran 8165
snippsat 7324
deanhystad 6809
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
happyhippo Today
latifayounes Yesterday
Mido Yesterday
CarmelaAffow Yesterday
AlexZolotov 05-01

User Panel Messages

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