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,468
» Latest member: AymanNassar
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 791 online users.
» 0 Member(s) | 787 Guest(s)
Google, Bing, Yandex, Baidu

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:32 PM
» Replies: 1
» Views: 161
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
Yesterday, 04:09 PM
» Replies: 1
» Views: 105
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
Yesterday, 07:38 AM
» Replies: 4
» Views: 1,299
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 12:25 AM
» Replies: 0
» Views: 86
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 347
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,140
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 353
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 410
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 979
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 217

 
  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: 246)
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: 246)
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

  why does VS want to install seemingly unrelated products?
Posted by: db042190 - Jun-12-2023, 01:26 PM - Forum: General Coding Help - Replies (3)

Hi, I thought if I was going to get more involved with Python, that developing scripts would be more effective under my already installed VS 2022 than..... More


Attached Files

Thumbnail(s)
   
Print this item

Question Need help for a python script to extract information from a list of files
Posted by: lephunghien - Jun-12-2023, 02:17 AM - Forum: General Coding Help - Replies (6)

I am new to Python and need help to make a script for the task. I am running a modified Autodock program and need to compile the results.

I have a ..... More

Print this item

  Interactive plots that can be embed in web page
Posted by: mouse9095 - Jun-12-2023, 01:03 AM - Forum: General Coding Help - Replies (1)

Hello,

I am curious if there is a way that I can make a Python plot with a parameter that is linked to an equation, and that parameter can be chan..... More

Print this item

  tkinter.TclError
Posted by: foxxrunning - Jun-11-2023, 10:23 PM - Forum: General Coding Help - Replies (10)

I have been trying to learn python and are using some lessons with small coding exercises. Lately I have gotten this error no matter which program I ..... More

Print this item

  queue for async function python telegram.ext
Posted by: noctious - Jun-11-2023, 02:40 PM - Forum: General Coding Help - No Replies

Hi, I have a telegram bot code in which you enter a number, and it counts down from that number to zero.

I need to create a queue to execute the coun..... More

Print this item

  Plot multiple 2D Curves in 3D
Posted by: stc - Jun-11-2023, 10:16 AM - Forum: General Coding Help - Replies (5)

Hello,

i want to plot 3 different 2D curves in a 3D coordinate system, so lets say 3 simple sine functions. One in x and y direction, one in x and ..... More

Print this item

  Google API Help?
Posted by: DavyThe007 - Jun-11-2023, 12:21 AM - Forum: General Coding Help - No Replies

Hi All

I'm fairly new to coding and have been relying heavily on ChatGPT, we get roughly 8 hours in after fleshing everything out, adding features,..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... Yesterday, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import Yesterday, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... Yesterday, 07:38 autodecay Pate General Codin...
  tracking version during r... Yesterday, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 564105
  Tutorial Requ... 451064
  Web Scraping ... 429087
  Newbie with P... 363860
  Thread remain... 336348
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
AymanNassar Today
Shailesh Yesterday
jackdennis272 Yesterday
JeanChristophe 05-14
EZEKIELGRAPHICSMEDIA 05-14

User Panel Messages

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