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,272
» Latest member: DataScientist071
» Forum threads: 38,787
» Forum posts: 175,858

Full Statistics

Online Users
There are currently 45 online users.
» 1 Member(s) | 35 Guest(s)
Bing, Google, Applebot, Facebook, Mojeek, Axel_Erfurt

Latest Threads
PyQt6 QWidgets and system...
Forum: GUI
Last Post: deanhystad
2 hours ago
» Replies: 1
» Views: 122
best way to learn python
Forum: News and Discussions
Last Post: mamta25
2 hours ago
» Replies: 5
» Views: 3,057
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 10:27 PM
» Replies: 3
» Views: 183
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 162
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 128
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 177
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 352
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 73
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 371
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 214

 
  functional LEDs in an array or list? // RPi user
Posted by: Doczu - Aug-21-2022, 03:12 PM - Forum: General Coding Help - Replies (5)

Hi! Total programming noob (not just in Python) here trying to make his code a bit shorter and more readable.

I'm trying to put functional LEDs in ..... More

Print this item

  Tutorials Compilation
Posted by: Knight18 - Aug-21-2022, 07:38 AM - Forum: Tutorial Requests and Submissions - No Replies

Hello everyone. I want to share with you all a complete and exhaustive list of Pygame Tutorials that I have compiled into a single page. It features o..... More

Print this item

  Pandas usecols question
Posted by: rsearing - Aug-20-2022, 06:18 PM - Forum: Data Science - Replies (1)

I am very new to Python (just installed yday) and am workink with Pandas, obviously, also new. I have a large csv file I am trying to read and then se..... More

Print this item

  Function not scriptable: Noob question
Posted by: kaega2 - Aug-20-2022, 06:08 PM - Forum: General Coding Help - Replies (3)

Hey everyone.
I keep getting the error "Function no scriptable". I don't know why.

from tkinter import Menu


[python]MENU = {
"espresso"..... More

Print this item

  PPBD webscraping
Posted by: Mariegain - Aug-20-2022, 09:14 AM - Forum: General Coding Help - Replies (4)

Good morning to all,

I have been having serious problems for the last 2 months because I can't manage to scrape the different tables of the followi..... More

Print this item

  Assistance debuging imaplib errors
Posted by: Linh_lee - Aug-20-2022, 01:41 AM - Forum: General Coding Help - Replies (1)

Hello all,

Getting close to what I want to accomplish, below is new simplified code. I just need assistance please in debugging the errors.

What..... More

Print this item

  Help with conversion program
Posted by: uwl - Aug-19-2022, 08:36 PM - Forum: General Coding Help - Replies (1)

I have errors in my code, it is for converting RGB to Hex in python.
[python]
def color(RGB):
if RGB > 255:
RGB = 255
elif RGB < 0:
..... More

Print this item

  Performance options for sys.stdout.writelines
Posted by: dgrunwal - Aug-19-2022, 08:28 PM - Forum: General Coding Help - Replies (11)

Pythonistas,

I am trying to improve performance of a simple script reading and comparing two 20KB .dat files. The diff assignment takes 42 seconds..... More

Print this item

  Can Python be used as a macro language for excel, Word, etc.?
Posted by: CynthiaMoore - Aug-19-2022, 08:23 PM - Forum: News and Discussions - Replies (8)

I currently use Visual Basic for Applications (VBA) as the macro language for Excel and Word. It's a horrible language. Can Python be used instead?

Print this item

  [SOLVED] [BeautifulSoup] Turn select() into comma-separated string?
Posted by: Winfried - Aug-19-2022, 07:34 PM - Forum: General Coding Help - No Replies

Hello,

I found no example in the tutorial and other sources.

With a select(), ..... More

Print this item

  How to find employees clocked in at two different locations
Posted by: ToussaintOps - Aug-19-2022, 05:51 PM - Forum: General Coding Help - No Replies

So I have this software that shows me when employees at various store locations are clocked in or out. It will spit out the data in either excel forma..... More

Print this item

  Nested for loops: Iterating over columns of a DataFrame to plot on subplots
Posted by: dm222 - Aug-19-2022, 11:07 AM - Forum: General Coding Help - No Replies

Hi all,

I am trying to write some code which iterates over columns in a DataFrame and plots each column in its own subplot.

Take the DataFrame:..... More


Attached Files

Thumbnail(s)
           
Print this item

  Failing reading a file and cannot exit it...
Posted by: tester_V - Aug-19-2022, 05:28 AM - Forum: General Coding Help - Replies (8)

Greetings!
I’m trying to scan files in a directory, and I found some files are corrupted somehow.
The files are standard text.log.
I tried opening ..... More

Print this item

  I need to add data types to cython conversion python to c
Posted by: Good_AI_User - Aug-18-2022, 09:07 PM - Forum: General Coding Help - Replies (1)

This question is about Cython converting python to C, C++ code

I have tried all kinds of ways to add data types that would make my python stuff wor..... More

Print this item

  Net Revenue Calcutaion
Posted by: Davejrt - Aug-18-2022, 08:59 PM - Forum: General Coding Help - Replies (1)

How can I calculate the net amount on the basis of certain conditions against all the data in my dataset?

Print this item

  xml simple reader
Posted by: kucingkembar - Aug-18-2022, 08:20 PM - Forum: General Coding Help - Replies (2)

sorry for my bad English,
I have scrapped a robots.txt from a website,
this is the trimmed/edited version of that txt
[quote]
<img>gamepic1.jpg</img><..... More

Print this item

  Run a Function?: Trouble with Online Python Course
Posted by: webmanoffesto - Aug-18-2022, 07:56 PM - Forum: General Coding Help - Replies (3)

Please help me with the below program. My Python is rusty. I'm trying to help my son with the below program. It should return a message like "Pichu (h..... More

Print this item

  tkinter and multiprocessing
Posted by: menator01 - Aug-18-2022, 06:36 PM - Forum: Code sharing - No Replies

Just a simple tkinter window using multiprocessing and labels

[python]import multiprocessing as mp
import random as rnd
import tkinter as tk

'..... More

Print this item

  Unable to request image from FORM Data
Posted by: usman - Aug-18-2022, 06:23 PM - Forum: General Coding Help - No Replies

Hello,

I am trying to capture an image from WebCam and show JSON containing image string and UserID on the next page when the user clicks the Uplo..... More

Print this item

  How can I web scrape the "alt" attribute from a "img" tag with Python?
Posted by: cisky - Aug-18-2022, 04:56 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm trying to web scrape the attribute "alt" from a "img" tag of this website: https://www.meteo.it/meteo/roma-oggi-58091. As you may understand, even..... More

Print this item

Lightbulb IMAP select command
Posted by: Linh_lee - Aug-18-2022, 03:40 PM - Forum: General Coding Help - Replies (2)

How can I change this IMAP select command from "INBOX" to "any" on a Yahoo mailbox?

I want to search ALL mailboxes.

[python]############### Set ..... More

Print this item

  [split] simple calculator
Posted by: FelixLarry - Aug-18-2022, 02:24 PM - Forum: Code sharing - Replies (11)

I started learning python just a week ago and has been a very interesting experience. I have been able to write my first program in python, which is a..... More

Print this item

  Pymysql delete specific rows in tableview
Posted by: stsxbel - Aug-18-2022, 08:15 AM - Forum: General Coding Help - Replies (2)

There is a database, data is constantly written to it, but sometimes data 0.0 gets. An entry appears in the table with values, for example prod1=0.0/ ..... More

Print this item

  CSV not printing apostrophe correctly
Posted by: bazcurtis - Aug-17-2022, 08:11 PM - Forum: General Coding Help - Replies (8)

Hi,

I have a report that contains a lot of Mac machine names. Users seem to love apostrophes in the name.

I am getting this in my csv

adminis..... More

Print this item

  Nested for loops - help with iterating a variable outside of the main loop
Posted by: dm222 - Aug-17-2022, 05:45 PM - Forum: General Coding Help - Replies (4)

Hi all,

First of all there isn't 27 attachments to this question there are 5.
I have made the question more concise so please do read again.

I ..... More


Attached Files

Thumbnail(s)
                   
Print this item

  proportional fonts
Posted by: DPaul - Aug-17-2022, 05:19 PM - Forum: GUI - Replies (3)

Hi,
I have developed a tkinter app that is suposed to work on 1920x1080 and 1920x1200 PCs (windows).
Using :
[python]width= root.winfo_screenwidth(..... More

Print this item

  First post
Posted by: azizrasul - Aug-17-2022, 03:53 PM - Forum: General Coding Help - Replies (1)

Hi All,

I have just started to learn Python and I have already run into a problem Wall

Was using the Visual Studio Code software and every..... More

Print this item

  [Solved by deanhystad] Create a zip file using zipfile library
Posted by: DZ_Galaxy - Aug-17-2022, 03:35 PM - Forum: General Coding Help - Replies (2)

Peace
Hi everyone

when I create a zip file, it takes all the folders and adds them to the zip file
"user/files/programs/day44/img.png"
what I wa..... More

Print this item

  Statsmodels, Dickey-Fuller test for stationarity
Posted by: Led_Zeppelin - Aug-17-2022, 01:59 PM - Forum: General Coding Help - Replies (1)

I need a reference. I am using statsmodels library. I need to know the difference between the Dickey-Fuller test and the augmented Dickey-Fuller test...... More

Print this item

  [SOLVED] [BeautifulSoup] How to get this text?
Posted by: Winfried - Aug-17-2022, 01:36 PM - Forum: General Coding Help - Replies (6)

Hello,

Can BeautifulSoup grab what's between the brackets ("John Doe") in the following line?

[python]from bs4 import BeautifulSoup

with open..... More

Print this item

  Error doing CV for training and testing datasets
Posted by: Z47 - Aug-17-2022, 12:34 PM - Forum: General Coding Help - Replies (2)

I am trying to do CV for my training and testing datasets. I am using LinearRegressor. However, when I run the code, I get the error below. But when I..... More

Print this item

  Flask run function in background and auto refresh page
Posted by: raossabe - Aug-17-2022, 11:44 AM - Forum: Web Scraping & Web Development - Replies (2)

I'm trying to get a function to run in the background when accessing my flask application then update the content of the page when the function is com..... More

Print this item

  Readability in Python and PHP
Posted by: ankitdixit - Aug-17-2022, 10:08 AM - Forum: News and Discussions - Replies (1)

Hello All, I am working on a python project and I have 2+ years of experience in PHP. I want to know which programming language readability is more ea..... More

Print this item

  How to split the input taken from user into a single character?
Posted by: mHosseinDS86 - Aug-17-2022, 09:53 AM - Forum: General Coding Help - Replies (3)

Hi there everyone,
Hope you guys are doing awesome coding! I'm new and learning python. I just wanted to ask you guys that I want to take the input f..... More

Print this item

  Setting up and integrating Jupyter Notebook development environment with VSC
Posted by: Drone4four - Aug-17-2022, 02:02 AM - Forum: Data Science - Replies (3)

Hello Pythonistas!

I am trying to set up the Jupyter Notebook extension for VSCode but I can’t get my code snippets to run.

If you check out th..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  PyQt6 QWidgets and system... 2 hours ago stevecoh1 deanhystad GUI
  best way to learn python 2 hours ago dutch mamta25 News and Disc...
  Graph Interpolate Difficu... Yesterday, 22:27 Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
Most views
  The best Prog... 579116
  Tutorial Requ... 511348
  Web Scraping ... 442074
  Newbie with P... 386141
  New Users Int... 378510
Most reputation
buran 581
snippsat 511
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+ 12108
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
DataScientist071 Today
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday

User Panel Messages

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