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,932
» Latest member: XenonBlack
» Forum threads: 38,720
» Forum posts: 175,502

Full Statistics

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

Latest Threads
Too much space between gr...
Forum: GUI
Last Post: deanhystad
2 hours ago
» Replies: 3
» Views: 897
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Today, 07:07 AM
» Replies: 1
» Views: 356
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,487
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,537
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 414
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 130
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,917
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,168
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 857
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-14-2025, 11:25 AM
» Replies: 7
» Views: 2,245

 
  How to detect abnormal data in big database python
Posted by: vanphuht91 - Jun-19-2023, 03:20 PM - Forum: General Coding Help - Replies (5)

I have a database with 10,000 rows and 3,000 columns. My task is detect abnormal data when compare line by line, item by item.

[python]
import mat..... More


Attached Files

Thumbnail(s)
       

.xlsx   Book1.xlsx (Size: 16.29 KB / Downloads: 261)
Print this item

Bug Dinamically adding widgets to layout [PySide6]
Posted by: carecavoador - Jun-19-2023, 11:56 AM - Forum: GUI - Replies (2)

Hello!

I'm following this thread on SO to dinamically crea..... More

Print this item

  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: 277)
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: 272)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Too much space ... 2 hours ago RonR deanhystad GUI
  Another app idea - intera... Today, 07:07 decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
  Python Installation issue 09-14, 11:16 RFHill Dev News and Disc...
Most views
  The best Prog... 575831
  Tutorial Requ... 497131
  Web Scraping ... 439838
  Newbie with P... 383543
  New Users Int... 365471
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 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
XenonBlack Today
tobey12 Today
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday

User Panel Messages

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