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,244
» Latest member: thebigback
» Forum threads: 38,778
» Forum posts: 175,804

Full Statistics

Online Users
There are currently 41 online users.
» 0 Member(s) | 37 Guest(s)
Google, Bing, AOL, Mojeek

Latest Threads
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
5 hours ago
» Replies: 2
» Views: 47
Backward compatibility qu...
Forum: News and Discussions
Last Post: yutaozhou
6 hours ago
» Replies: 4
» Views: 168
I’m building a Python Dat...
Forum: GUI
Last Post: Gribouillis
8 hours ago
» Replies: 6
» Views: 165
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 72
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,587
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 162
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 153
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,554
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,392
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,591

 
  response 404 or 500 when trying to get products/sales from woocommerce using python
Posted by: wailoonho - Dec-17-2023, 11:57 AM - Forum: Web Scraping & Web Development - No Replies

Hi
I'm trying to get product and sales data from woocommerce using python

here is my code

[python]
import json
from woocommerce import API
..... More

Print this item

  question about __slots__
Posted by: akbarza - Dec-17-2023, 07:10 AM - Forum: General Coding Help - Replies (1)

hi
in the code:( address of the code is line 2)
[python]# usage of slot to prevent of dynamical attribute change by user.
# https://realpython.com/..... More

Print this item

  Bar Chart
Posted by: James_S - Dec-17-2023, 06:27 AM - Forum: General Coding Help - Replies (5)

How to draw a bar chart of the column "CC" from a my.csv file (show below) to count occurrence in ascending order?

32, AA,BB,CC,DD,EE
41,monkey,do..... More

Print this item

  Rename first row in a CSV file
Posted by: James_S - Dec-17-2023, 12:57 AM - Forum: General Coding Help - Replies (3)

I don't know what I have done wrong. I want to rename the first row of the table:
[python]
renamed_df = pd.read_csv('my_data.csv')

# Change colum..... More

Print this item

  Colorama_EX
Posted by: alp3rkum - Dec-16-2023, 04:11 PM - Forum: Code sharing - No Replies

Ladies and gentlemen, here I am with my first public PyPI package. I've written an extension module to famous colorama module, which I've named as "co..... More


Attached Files

Thumbnail(s)
   
Print this item

  Checking for Validity of Variables
Posted by: RockBlok - Dec-16-2023, 03:53 PM - Forum: General Coding Help - Replies (2)

I'm playing around with globals and managing variables, and I want to be able to check if a variable exists without the program stopping. If the varia..... More

Print this item

Question [PyMuPDF] Grab all strings of a given size?
Posted by: Winfried - Dec-16-2023, 12:51 PM - Forum: General Coding Help - Replies (3)

Hello,

I need to loop through a bunch of PDFs, each containing one or more articles.

I notice titles can use different fonts, but all seem to ha..... More


Attached Files

Thumbnail(s)
   
Print this item

  mutable argument in function definition
Posted by: akbarza - Dec-15-2023, 10:54 AM - Forum: General Coding Help - Replies (1)

hi
the below code is in :
https://realpython.c[url=https://python-forum.io/thread-41300.html]..... More

Print this item

  Website ranking
Posted by: Benowen - Dec-15-2023, 05:17 AM - Forum: Bar - Replies (5)

Hello friends, I created a website six months ago but still did not get a good traffic to my website. I really want to rank my website on Google. Kind..... More

Print this item

  Expense Tracker Project
Posted by: dnviti - Dec-14-2023, 11:51 PM - Forum: Web Scraping & Web Development - No Replies

Hello!
I'm Daniele, 30 years old!
Seasoned dotnet developer, dropped working in the dotnet industry and then started studying python.

So after my lon..... More

Print this item

  Can anyone recommend me an ai?
Posted by: SuchUmami - Dec-14-2023, 11:48 PM - Forum: General Coding Help - Replies (1)

I want to scan some documents into an ai. These documents are too large for chatgpt. Is there an AI that works similarly to gpt but I am able to feed ..... More

Print this item

  Assigning conditional values in Pandas
Posted by: Scott - Dec-14-2023, 09:25 PM - Forum: Data Science - Replies (3)

Hi everyone,

I am playing around with some old code from online and am getting an error:

[python]for dataset in train_test_data:
dataset.lo..... More

Print this item

  Static type checking with PyPy
Posted by: pitosalas - Dec-14-2023, 08:39 PM - Forum: General Coding Help - Replies (1)

I am using type hints as an experiment to see the pros and cons. I am also using PyPy a an experiment with static type checking.

Here's an inconve..... More

Print this item

  Database connection problems [login, PyQt5, PySql]
Posted by: gradlon93 - Dec-14-2023, 07:41 PM - Forum: General Coding Help - Replies (5)

Hello Python community,

I'm working on a PyQt5 project and I'm experiencing an issue with a login dialog class that I'm struggling to resolve. Any ..... More

Print this item

  Why is bool(float("nan")) == True?
Posted by: EarthAndMoon - Dec-14-2023, 04:04 PM - Forum: Data Science - Replies (4)

Why is

bool(float("nan")) == True
?

Print this item

  problem with print lists
Posted by: MarekGwozdz - Dec-14-2023, 03:04 PM - Forum: General Coding Help - Replies (4)

>>> pprint(response.choices)
[output][Choice(finish_reason='length', index=0, message=ChatCompletionMessage(content='The time comple..... More

Print this item

  str.split() with separator grouping
Posted by: Skaperen - Dec-14-2023, 01:29 AM - Forum: News and Discussions - Replies (1)

if sep is not given when calling str.split(), it combines runs of white-space as a single separator. if sep is given, then each ..... More

Print this item

Information subprocess.Popen() suddenly giving me grief?
Posted by: davecotter - Dec-13-2023, 09:03 PM - Forum: General Coding Help - Replies (3)

[font=Courier New]C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>python3
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17)..... More


Attached Files

Thumbnail(s)
   
Print this item

  Can i draw more elements in a canvas?
Posted by: Yeti - Dec-13-2023, 12:03 PM - Forum: GUI - Replies (2)

Hi, i am new to tkinter. I want to know if there is a way to draw more elements into a canvas in tkinter. My goal is to display in a canvas a trajecto..... More

Print this item

  Do you think you can make it ?
Posted by: Mistyh - Dec-13-2023, 10:00 AM - Forum: Homework - No Replies

You will need to upload 3 files (the script, the requirement file and the csv output). The script for the projects will be named exclusively risky_ris..... More

Print this item

  file open "file not found error"
Posted by: shanoger - Dec-13-2023, 08:31 AM - Forum: General Coding Help - Replies (8)

hello all, i am having trouble reading a simple text file, using eclipse and tried pycharm as well, both throw the same "FileNotFoundError: [Errno 2] ..... More

Print this item

  motion tracking script ig?
Posted by: k4ne - Dec-13-2023, 02:00 AM - Forum: General Coding Help - No Replies

how can i automate this? the gray thingy goes up by pressing lmb
https://imgur.com/a/2i3gjvC

Print this item

  return none
Posted by: Raysz - Dec-13-2023, 01:08 AM - Forum: General Coding Help - Replies (7)

Hi everyone I have this small script here
which I'm sure a lot of you will probably recognize it
I modified it to look like this
and it works prett..... More

Print this item

  Remove some columns
Posted by: James_S - Dec-12-2023, 11:58 PM - Forum: General Coding Help - Replies (4)

Hi there,

I want to remove some columns keep only Age Sex BMI Region Charges and then display the new table.
Please help me because I cannot displ..... More

Print this item

  How to do this with Tkinter?
Posted by: emont - Dec-12-2023, 08:48 PM - Forum: GUI - Replies (9)

Hello,

I have a window created with Tkinter (see screenshot attached), but I am having issues after this one is created, specially with window.main..... More


Attached Files

Thumbnail(s)
   
Print this item

  Enigma Decoding Problem
Posted by: krisarmstrong - Dec-12-2023, 05:16 PM - Forum: General Coding Help - Replies (4)

I have been working on a Python application. It was initially coded in C++. I have the encoding working however the decoding is not producing the ex..... More

Print this item

  Script that alternates between 2 text messages
Posted by: DiscoMatic - Dec-12-2023, 02:52 PM - Forum: General Coding Help - Replies (1)

Hello,

I am completely new tho Python, but i would like to program a script that alternates between 2 text messages.

first is displays "Drive" a..... More

Print this item

  usage of ":"
Posted by: zeppos - Dec-12-2023, 08:38 AM - Forum: Homework - Replies (1)

Hi,

I have a question related to the : sign. I have students taking their first steps in Python. I noticed one of my students use ":" wrong. Howev..... More

Print this item

  Problems trying to position images with Tkinter
Posted by: emont - Dec-11-2023, 09:25 PM - Forum: GUI - Replies (3)

Hello,

I am trying to create this in Python with TKinter (see screenshot1), but when I try to position the foler_logo.png image, but always appears..... More


Attached Files

Thumbnail(s)
       
Print this item

  PySide6 - Connect to DBus signal - Correct syntax
Posted by: Drexel - Dec-11-2023, 08:14 PM - Forum: GUI - Replies (1)

Hello,

can you help me with the correct syntax to connect to a DBus signal?

This is one of my many tries which at least runs and matches the [ur..... More

Print this item

  Different Ways to Import Modules
Posted by: RockBlok - Dec-11-2023, 01:53 PM - Forum: General Coding Help - Replies (2)

Good morning,

I'm not entirely sure I understand the reason to use the asterix when importing modules, or what its significance might be, or why yo..... More

Print this item

  White edge
Posted by: sdgdfgg - Dec-11-2023, 12:34 PM - Forum: GUI - Replies (4)

clean Red line region please Heart
[Image: fd2f19dc0bedcac0b35657f266f94f37.jpeg]
[python]root = tk.Tk..... More


Attached Files

Thumbnail(s)
   
Print this item

  connection python and SQL
Posted by: dawid294 - Dec-11-2023, 09:28 AM - Forum: General Coding Help - Replies (4)

Hi python experts, Is possible to connect Python and SQL? In jupyter notebook or in Pycharm? Is possible start the code from SQL in Python? If Yes ho..... More

Print this item

  I am getting a valueError. And not sure why? My goal is to visualize the correlation
Posted by: ReadytoCode - Dec-11-2023, 05:33 AM - Forum: General Coding Help - No Replies

Hi all

I am just learning python. I am trying to visualize the correlation matrix of the S&P 500 stock data but I am getting a ValueError: could no..... More

Print this item

  I must be missing something simple?
Posted by: SLFrey - Dec-10-2023, 06:34 PM - Forum: General Coding Help - Replies (2)

To start - I am a novice at Python.
I have a created a "tool" I use for my work daily. It includes the ability to create Excel workbooks that I use f..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Help with Serial.write in... 5 hours ago racingsubby racingsubby General Codin...
  Backward compatibility qu... 6 hours ago yutaozhou yutaozhou News and Disc...
  [Tkinter] I’m building a ... 8 hours ago tsgiannis Gribouillis GUI
  [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
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
Most views
  The best Prog... 578757
  Tutorial Requ... 509573
  Web Scraping ... 441884
  Newbie with P... 385854
  New Users Int... 375554
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+ 12103
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
thebigback Yesterday
dimitriwati Yesterday
johnsonlucas83 Yesterday
ColorTig Yesterday
AcoolPurpleOne1863 Yesterday

User Panel Messages

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