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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

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

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
10 hours ago
» Replies: 1
» Views: 53
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
11 hours ago
» Replies: 11
» Views: 262
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
11 hours ago
» Replies: 3
» Views: 105
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Today, 05:07 AM
» Replies: 5
» Views: 231
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 92
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,601
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 187
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 172
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,884
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,409

 
  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

  Loop through all files in a directory?
Posted by: Winfried - Apr-22-2024, 06:16 PM - Forum: General Coding Help - Replies (10)

Hello,

I need to find all the files located under a given directory, including all the sub-directories it may contain.

Is this a/the right way t..... More

Print this item

  Volume label
Posted by: DPaul - Apr-22-2024, 03:10 PM - Forum: Bar - Replies (3)

Hi,
I would like to do the following:
When I start my search program for prayer cards,
the system looks immediately for availability of the data on t..... More

Print this item

  Made a discord bot game that uses commands but now trying to add buttons
Posted by: Dmcsdiscord - Apr-22-2024, 10:17 AM - Forum: General Coding Help - Replies (1)

Hey guys,

https://pastebin.com/YwTqHbiV —— game working with ! Commands and no buttons

https://pastebin.com/gJWVnGHU ——- game not so working, b..... More

Print this item

  Need help with Allure report
Posted by: Nik1811 - Apr-22-2024, 09:59 AM - Forum: General Coding Help - No Replies

Hi,
I need some help in setting up allure reporting structure into my framework. Can someone please guide where can we add the dependencies and how ..... More

Print this item

  What does .flush do? How can I change this to write to the file?
Posted by: Pedroski55 - Apr-22-2024, 09:28 AM - Forum: General Coding Help - Replies (3)

Looking at using yield, I have this simulated log file: logsim.py

logsim.py has 2 very long lists, ips and docs

ips like this: ips = ['129.194.8..... More

Print this item

  FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries
Posted by: sawtooth500 - Apr-21-2024, 06:16 PM - Forum: General Coding Help - Replies (14)

This is with pandas dataframes. The code works, but I am getting a warning.

[error]C:\Users\thpfs\documents\python\cleaner.py:223: FutureWarning: ..... More

Print this item

  Failing to connect by 'net use'
Posted by: tester_V - Apr-20-2024, 05:34 AM - Forum: General Coding Help - Replies (1)

Greetings to those that still up at this time! Wink
I'm failing to map network shares.
I'm identifying "letters not in use" for a share to mou..... More

Print this item

  Management software with image comparison
Posted by: franc1986 - Apr-19-2024, 09:12 PM - Forum: Web Scraping & Web Development - No Replies

Hi, let me start by saying I'm a beginner.
I wanted to try my hand at this adventure, convinced that with ChatGPT 4 I would be able to do it.
But he..... More

Print this item

Question Using Lists as Dictionary Values
Posted by: bfallert - Apr-19-2024, 08:30 PM - Forum: General Coding Help - Replies (8)

I am trying to use lists as dictionary values. I am running a loop that creates a new list each time and then assigns it to a specific key. The iterat..... More

Print this item

  Pandas Outer merge
Posted by: skollu826 - Apr-19-2024, 07:28 PM - Forum: General Coding Help - Replies (2)

I have two data frames
dataframe 1
col1 col2
1 A
1 B
2 C
5 Z
4 Q

dataframe 2

col1 col2
1 A
1 ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 10 hours ago lary_p Larz60+ Homework
  [Tkinter] I’m building a ... 11 hours ago tsgiannis tsgiannis GUI
  Help with Serial.write in... 11 hours ago racingsubby Larz60+ General Codin...
  Backward compatibility qu... Today, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [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
Most views
  The best Prog... 578800
  Tutorial Requ... 509747
  Web Scraping ... 441906
  Newbie with P... 385898
  New Users Int... 375884
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kacper Today
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday

User Panel Messages

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