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,559
» Latest member: coolwaves4all
» Forum threads: 38,664
» Forum posts: 175,210

Full Statistics

Online Users
There are currently 244 online users.
» 0 Member(s) | 237 Guest(s)
Applebot, Bing, Google, Baidu, Yandex, Mojeek

Latest Threads
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: duckredbeard
2 hours ago
» Replies: 6
» Views: 266
Made my first Python prog...
Forum: Game Development
Last Post: Ricky1178
Yesterday, 11:12 PM
» Replies: 8
» Views: 10,653
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 11:36 AM
» Replies: 2
» Views: 168
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 125
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,753
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 755
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,219
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 458
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 247
Unable to define function...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:26 AM
» Replies: 2
» Views: 109

 
  Formatting a date time string read from a csv file
Posted by: DosAtPython - Jun-19-2023, 10:59 AM - Forum: General Coding Help - Replies (5)

L.S.,

I'm rather new to python-programming. I'm trying to remove the time info from a date time string read from a csv-file. My impression is that ..... More

Print this item

  Beginner question re: Tkinter geometry
Posted by: return2sender - Jun-19-2023, 12:39 AM - Forum: GUI - Replies (3)

I am trying to create a data entry form that takes user input in categories and displays it in a grid.

The code below illustrates what I am trying ..... More

Print this item

  docx insert words of previuos paragraph on next paragraph in the same position
Posted by: ctrldan - Jun-18-2023, 09:10 PM - Forum: General Coding Help - Replies (7)

Hi, with from docx import Document I want to convert a docx to xml (and I did, I create a string that will be my output xml). This docx document conta..... More


Attached Files

Thumbnail(s)
   
Print this item

  pip installs in a different python version and directory than the default 3.11
Posted by: ao_tex_mal - Jun-18-2023, 05:19 PM - Forum: General Coding Help - Replies (9)

Hi All,

Quick question - not related explicitly to python code - more related to installing packages.

When I try to install packages with pip insta..... More

Print this item

  Code is returning the incorrect values. syntax error
Posted by: 007sonic - Jun-18-2023, 04:23 PM - Forum: General Coding Help - Replies (6)

Just trying to figure out why my code here is returning the incorrect minimum and maximum values. tried flipping the ">" and "<" around and it still d..... More

Print this item

  Python: AttributeError: 'PageObject' object has no attribute 'extract_images'
Posted by: Melcu54 - Jun-18-2023, 02:06 PM - Forum: General Coding Help - Replies (2)

hello, I try to convert with OCR some pdf that contains images. I got this error:

[python]Traceback (most recent call last):
File "E:\Carte\BB\1..... More

Print this item

  Invalid argument: 'images\x08ackground.jpg'
Posted by: CatBall - Jun-18-2023, 10:52 AM - Forum: General Coding Help - Replies (4)

My code:
[Image: d6a4a5c68148a348a654a0a4a7774cfb.png]

The error:
[img]https://i.gyazo.com/67e616fd9ee26818bfe80edb628e9ede..... More

Print this item

  Parallel processing - AttributeError: Can't get attribute 'sktimekmeans'
Posted by: Mohana1983 - Jun-18-2023, 03:35 AM - Forum: General Coding Help - Replies (1)

Hi,

I am kind of new to Python as well as programming. I am running partitional clustering for time series data. It has 178 columns by 50000 rows. ..... More

Print this item

  PDF properties doesn't show created or modified date
Posted by: Pedroski55 - Jun-18-2023, 03:23 AM - Forum: General Coding Help - Replies (4)

I had a lot of small pdfs, which I merged to 1 big pdf using PyPDF2, a great tool! Works perfectly!

When I open the big pdf, and go to File Options..... More

Print this item

  Spaghetti Code
Posted by: kucingkembar - Jun-17-2023, 02:50 PM - Forum: General Coding Help - Replies (4)

sorry for my bad English, or if I write in the wrong Section

I can do some Python coding,
but the ending of my code usually ends as Spaghetti Cod..... More

Print this item

  Help to control pandas.melt function
Posted by: vanphuht91 - Jun-17-2023, 08:36 AM - Forum: Data Science - No Replies

I’m using pandas to processing my raw data.
I have raw data like this:
   

I want to convert some columns to row using pd.melt like..... More


Attached Files

Thumbnail(s)
   
Print this item

  problem with a formula 1 kind of homework
Posted by: claroque - Jun-17-2023, 03:19 AM - Forum: Homework - Replies (2)

in preparatory classes we have something called tipe it is basically a kind of presentation that we need to prepare and we have to put in some added v..... More

Print this item

  Strange ModuleNotFound Error on BeautifulSoup for Python 3.11
Posted by: Gaberson19 - Jun-17-2023, 02:33 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi, first time poster here.

So I've been trying Beautiful Soup for the first time, but when I tried running my code, I ended up getting a ModuleNot..... More

Print this item

  Can anyone tell me why this code isn't looping properly?
Posted by: SuchUmami - Jun-16-2023, 11:42 PM - Forum: General Coding Help - Replies (2)

I made a basic buy bot for a crypto exchange. It searches a database and loops like I want it to, however when there is a trade that is triggered, the..... More

Print this item

  Finite fields (Galois library)
Posted by: J_Osorio - Jun-16-2023, 11:26 PM - Forum: General Coding Help - No Replies

Say, I want a finite field containing $2^n$ elements for some positive $n$. How to get a single random primitive element in Python, different from tha..... More

Print this item

  python-forum dot-org?
Posted by: treykeown - Jun-16-2023, 09:56 PM - Forum: Board - Replies (3)

Hey folks. I used to be a member of python-forum when this was a dot-org domain, many years ago. Looks like this might be the successor? If any of the..... More

Print this item

  Error flask_mysqldb
Posted by: IvanB - Jun-16-2023, 05:59 PM - Forum: General Coding Help - Replies (4)

I don`t understand why flask_mysqldb is giving errors, I am using an enviorment but i have flask and
Flask-MySQLDB but it keeps giving error. Someon..... More


Attached Files

Thumbnail(s)
               
Print this item

  Error when running kivy on python
Posted by: janeik - Jun-16-2023, 01:21 PM - Forum: General Coding Help - Replies (8)

desktop pc, win 10 , python 3.11, kivy 2.2

Hello. I am trying to run this code to confirm setup before I dive into python and kivy trying to achiev..... More

Print this item

  AttributeError
Posted by: foxxrunning - Jun-15-2023, 09:50 PM - Forum: General Coding Help - Replies (5)

I am using code to try to learn python. I am getting an AttributeError which I cannot figure out. Here is the error.

Exception in Tkinter callba..... More


Attached Files

.py   gui_cell_set_state.py (Size: 2.67 KB / Downloads: 259)
Print this item

  converting an int to bytes
Posted by: Skaperen - Jun-15-2023, 05:51 PM - Forum: News and Discussions - Replies (4)

i can convert an int to bytes by first converting to hexadecimal characters (and maybe prefixing a '0' to make an even number of digits). is there an..... More

Print this item

  Evaluate Calculations
Posted by: yrstruly - Jun-15-2023, 04:32 PM - Forum: Data Science - No Replies

Python Linear Regression Project
In the Python file, write a script that will perfom a linear regression on the data in data.txt and then calculate t..... More

Print this item

  Python GUI Programming
Posted by: rob101 - Jun-14-2023, 06:49 PM - Forum: News and Discussions - No Replies

There's a book that has just been published (isbn 978-93-5551-837-8) that could be very useful for any Python GUI developer.

It has been written fo..... More

Print this item

  scrape books
Posted by: moristrudeau4 - Jun-14-2023, 05:28 PM - Forum: General Coding Help - Replies (2)

Hello all! Can anyone help me?
I want to scrape all books of French language and export them to excel or csv. what i'm doing wrong?
[python]from bs4..... More

Print this item

  Development Environment Problems
Posted by: standenman - Jun-13-2023, 07:15 PM - Forum: General Coding Help - Replies (1)

I am having so many problems with my python development I am about to pull my hair out. I have created a virtual environment. I have accessing it va..... More

Print this item

  print(data) is suddenly invalid syntax
Posted by: db042190 - Jun-13-2023, 05:30 PM - Forum: General Coding Help - Replies (6)

Hi, my scripts are evolving but I seem to have taken a step backward. The script below works without the print(data) command but not with it. This w..... More

Print this item

  Object attribute behavior different in 2 scripts
Posted by: db042190 - Jun-13-2023, 05:12 PM - Forum: General Coding Help - Replies (1)

Hi, in scripts 1 and 2 below I got different behavior on object yf.Ticker.

Script 1 runs fine and in fact so too did a similar Script 2 for a mod..... More

Print this item

  Splitt PDF at regex value
Posted by: standenman - Jun-13-2023, 12:39 PM - Forum: Data Science - Replies (11)

I am trying to create code that will split a pdf into multiple files based upon a regex value in the pdf text. Specifically, I want to split this pdf..... More

Print this item

  Error: can't start new thread
Posted by: maha2 - Jun-13-2023, 12:26 PM - Forum: General Coding Help - No Replies

Hi!
When creating an instance of the pymongo.MongoClient class, I have the following error at irregular intervals:

[error]...
File "/srv/foo/..... More

Print this item

  Open a new window does not work
Posted by: Nietzsche - Jun-13-2023, 09:28 AM - Forum: General Coding Help - Replies (4)

Hello,

i have a ui for the live plotter window. In this UI i have an menu point "Settings" (liveplotterEinstellungen). I load the UI and then connect..... More

Print this item

  Using ID3 Estimator for Decision Trees
Posted by: student6306 - Jun-13-2023, 08:17 AM - Forum: General Coding Help - Replies (2)

Hi, I got stuck on question d and onwards some help would be very much appreciated.
Following is the code I have so far but on question d I'm totally..... More

Print this item

  io.UnsupportedOperation: fileno
Posted by: toml12953 - Jun-13-2023, 01:11 AM - Forum: General Coding Help - Replies (3)

I'm using Python 3.11.4 (64-bit) on windows 11.
I've installed libraries from the book, Introduction to Python Programming.
One of these is c..... More

Print this item

  Is there a more elegant way to concatenate data frames?
Posted by: db042190 - Jun-12-2023, 09:49 PM - Forum: General Coding Help - Replies (3)

Hi, I'm picturing a script that will include in a loop everything after the setting of "today" and before the "print" prototyped in the code below. T..... More

Print this item

  Using ID3 Estimator for Decision Trees
Posted by: student6306 - Jun-12-2023, 05:43 PM - Forum: Homework - Replies (2)

I got stuck on d and onwards some help would be very much appreciated :)))

[python]
%%capture --no-display
# hack omwille van bug in Id3Estimator..... More


Attached Files

Thumbnail(s)
               

.csv   studentsScores.csv (Size: 3.07 KB / Downloads: 258)
Print this item

  Syntaxt error part 2
Posted by: GoldenHarvey - Jun-12-2023, 05:41 PM - Forum: Game Development - Replies (2)

Hello, I have followed the steps laid out and I want to thank you for bringing me closer to a solution in writing the game code Idel.

However even ..... More


Attached Files

Thumbnail(s)
   
Print this item

  why is yfinance returning an ellipsis in the middle of ticket history
Posted by: db042190 - Jun-12-2023, 03:23 PM - Forum: General Coding Help - Replies (3)

Hi , I tried my hand at a little loop in Python. I'm staying away from doing some of this redirecting in a shell language because ultimately i want t..... More


Attached Files

Thumbnail(s)
       
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  gpiozero buttons stop wor... 2 hours ago duckredbeard duckredbeard General Codin...
  [PyGame] Made my first Py... Yesterday, 23:12 andrerocha1998 Ricky1178 Game Developm...
  How to package code for d... Yesterday, 11:36 mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
  RemoTe server operation w... 07-14, 10:14 mario17 snippsat General Codin...
Most views
  The best Prog... 572724
  Tutorial Requ... 485783
  Web Scraping ... 437178
  Newbie with P... 380144
  Thread remain... 351393
Most reputation
buran 581
snippsat 507
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+ 12072
buran 8174
snippsat 7353
deanhystad 6860
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
coolwaves4all Today
Stephenchers Today
chocheng211 Today
comptonden1 Today
Gichardvop Yesterday

User Panel Messages

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