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,394
» Latest member: zcharlesoogleto9533
» Forum threads: 38,823
» Forum posts: 176,027

Full Statistics

Online Users
There are currently 43 online users.
» 0 Member(s) | 36 Guest(s)
Bing, Applebot, Google, Internet Archive, Mojeek, AOL

Latest Threads
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
8 hours ago
» Replies: 1
» Views: 59
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,592
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 184
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,601
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 154
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 298
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,113
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,964
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 180
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 116

 
Question remove all comment ?
Posted by: SpongeB0B - Oct-26-2023, 04:09 PM - Forum: General Coding Help - Replies (7)

Hi everyone,

I would like to remove all the comments in few of my .py files.

I could write a Python program to do so, but maybe someone already ..... More

Print this item

  Take data from web page problem
Posted by: codeweak - Oct-26-2023, 01:57 PM - Forum: General Coding Help - Replies (5)

Best regards, I kindly ask you, I have a problem and I have just started using Python, I have spent hours trying to solve this little question but I c..... More

Print this item

  pipelined generator
Posted by: akbarza - Oct-26-2023, 11:10 AM - Forum: General Coding Help - Replies (10)

hi
in the below code, pipelined generator has been used to sum values in a" techcrunch.csv" file and the code is in site:
..... More


Attached Files

.csv   techcrunch.csv (Size: 91.34 KB / Downloads: 218)
Print this item

  non-latin characters in console from clipboard
Posted by: Johanson - Oct-26-2023, 07:10 AM - Forum: General Coding Help - Replies (3)

In interactive console session mode Python 3.12 (after entering commands line by line),
the code with the Polish letter "ł" does not open any window...... More

Print this item

  I want to create custom charts in Python.
Posted by: js1152410 - Oct-26-2023, 06:30 AM - Forum: General Coding Help - Replies (1)

Can someone recommend Python libraries that I can use to create custom charts similar to ? link removed (chartexpo click bait)

Print this item

  Search Excel File with a list of values
Posted by: huzzug - Oct-25-2023, 06:14 PM - Forum: General Coding Help - Replies (4)

I'm trying to search for values from a list of values within a csv file. That CSV comes from the system which contains details about the machine that ..... More

Print this item

  How to use asyncio run_forever to continuously handle requests
Posted by: mansky - Oct-25-2023, 04:46 PM - Forum: General Coding Help - Replies (1)

Hi all,

I have a Python script that handles a continuous stream of requests, processing them using asyncio.
I find that the script hangs at times..... More

Print this item

  How does "Run Time" in Python make sense?
Posted by: stamp1t - Oct-25-2023, 08:17 AM - Forum: News and Discussions - Replies (1)

Hello, I don't understand why it makes sense to talk about "runtime" in Python. In Python, each line is read, interpreted, and executed one by one. So..... More

Print this item

  pygame, sprites, and rects
Posted by: menator01 - Oct-25-2023, 04:25 AM - Forum: Game Development - Replies (12)

Taking the following snippet, is it possible to create a pygame.Rect() and add it to a sprite group?
Been looking for awhile and not really found any..... More

Print this item

  Unexpected output while using random.randint with def
Posted by: terickson2367 - Oct-24-2023, 04:59 AM - Forum: General Coding Help - Replies (1)

So, I just learned about the keyword def; it has been going really smoothly for me because I reuse chunks of code often. However, I have run into a hi..... More

Print this item

  how to save to multiple locations during save
Posted by: cubangt - Oct-23-2023, 09:24 PM - Forum: General Coding Help - Replies (1)

I have a script with currently outputs a csv for a report.. But now multiple departments want access to the raw data.

I currently have this to_csv ..... More

Print this item

  SORTED.group by and count average of two columns [ sum of col 1 / sum of col 2 ]
Posted by: BSDevo - Oct-23-2023, 07:31 PM - Forum: Data Science - Replies (1)

Hi, im trying to group by and get an average of two columns in Pandas then display inside Streamlit_Folium chropleth.geojson map but my KPI and Map a..... More

Print this item

  [split] Class takes no arguments
Posted by: bily071 - Oct-23-2023, 03:23 PM - Forum: General Coding Help - Replies (2)

Hi,
I am a beginner and learning python basics from book Python Crash Course but can't figure this out Wall :

[python]class Dog():
"""A ..... More

Print this item

Video SVG + Python experiments (using pygame-ce and/or cairoSVG)
Posted by: KennedyRichard - Oct-23-2023, 02:54 PM - Forum: Code sharing - Replies (4)

I've been making different experiments/demos with Nodezator and other Python libraries in order to identify programmi..... More

Print this item

  Turtle Star Fill Color Yellow-White Interchanging Color Effect
Posted by: codelab - Oct-23-2023, 02:45 PM - Forum: General Coding Help - Replies (9)

https://docs.python.org/3/_images/turtle-star.png
Does anyone know how this interchanging color is achieved?

Print this item

  A working code to upload a file using sftp?
Posted by: Python_FTP - Oct-23-2023, 10:36 AM - Forum: Networking - Replies (5)

Can anyone share a presently working Python code that uploads a local file to a publicly accessible FTP server for testing purposes? I have tried seve..... More

Print this item

  Use of if - and operators
Posted by: Pedro_Castillo - Oct-23-2023, 10:00 AM - Forum: General Coding Help - Replies (1)

Hi,

Is use of the code below accurate? I believe it is not however, my friend tells me it is.

[python]
age=int(input("Enter your age: "))

if 21<ag..... More

Print this item

  How do I stream and record at the same time with arducam?
Posted by: traderjoe - Oct-23-2023, 12:01 AM - Forum: General Coding Help - No Replies

Hi, I have a raspberry pi 3b with an arducam. I'm trying to stream to a network and record my stream to the pi at the same time. How do I do this?

..... More

Print this item

  Modules
Posted by: menator01 - Oct-22-2023, 05:49 PM - Forum: News and Discussions - No Replies

I'm re-writing my shmup code and breaking it down into modules. My question is, should I put each class into separate modules?
As of now I have a pag..... More

Print this item

  code management
Posted by: trix - Oct-22-2023, 03:26 PM - Forum: General Coding Help - Replies (3)

i was wondering how you normaly have to work with the code files.

i gonna make a big code whit different files, where i have to work on a lot of ti..... More

Print this item

  Returning Column and Row Data From Spreadsheet
Posted by: knight2000 - Oct-22-2023, 07:07 AM - Forum: General Coding Help - No Replies

Hello all,

I'm trying to use the data of a spreadsheet as two variables to iterate through a test webscraper script using pandas, but I'm a little ..... More


Attached Files

.xlsx   importurl.xlsx (Size: 9.65 KB / Downloads: 251)
Print this item

  Help naming functions
Posted by: Fuckingdogma - Oct-22-2023, 02:26 AM - Forum: Homework - Replies (1)

For my assignment, it says to "create a string called Q1 with a word, and then create a function called Q2 that loops through and prints each characte..... More


Attached Files

Thumbnail(s)
   
Print this item

  Filter data into new dataframe as main dataframe is being populated
Posted by: cubangt - Oct-21-2023, 11:31 PM - Forum: General Coding Help - Replies (8)

Is this possible, i am populating a dataframe with a few fields and thousands of rows that will be saved into a CSV. For a separate reason, i need cer..... More

Print this item

  Error: audioio has no attribute 'AudioOut'
Posted by: netwrok - Oct-21-2023, 10:55 PM - Forum: General Coding Help - Replies (3)

Having issues with audioio within CircuitPython giving the error 'audioio' has no attribute 'AudioOut'
AudioOut is used to set the audio interface fo..... More

Print this item

  dynamic variable name declaration in OOP style project problem
Posted by: jacksfrustration - Oct-21-2023, 08:38 PM - Forum: General Coding Help - Replies (3)

Ok so basically im trying to build a flight tracker app. And i have a problem with the gui py file. I have a button that generates variable names usin..... More

Print this item

  When does Python detect Errors?
Posted by: stamp1t - Oct-21-2023, 04:56 PM - Forum: General Coding Help - Replies (1)

Hello, I am currently confused about the different times when errors are detected in Python...

First, for my understanding:
Python initially trans..... More

Print this item

  yield usage as statement or expression
Posted by: akbarza - Oct-21-2023, 11:05 AM - Forum: General Coding Help - Replies (5)

hi
the below code is in site:https://realpyth[url=https://python-forum.io/thread-40962.html]..... More

Print this item

  Authentication server (console)
Posted by: biscoito - Oct-20-2023, 11:44 PM - Forum: Networking - No Replies

Hello people,

I'd like to hear some recommendations regarding authentication using a server (RADIUS,etc) and console. Is there any library or sites t..... More

Print this item

  Simple pygame input box with cursor and character count
Posted by: menator01 - Oct-20-2023, 07:19 PM - Forum: Code sharing - No Replies

[python]
# Do the imports
import pygame
from time import time

# Initiate pygame
pygame.init()

# Create the screen surface and window caption..... More

Print this item

  Need to return 2 values from 1 DF that equals another DF
Posted by: cubangt - Oct-20-2023, 02:54 PM - Forum: General Coding Help - Replies (5)

ok, so i have a script that pings all our registers in the company to check if they are online or offline.. this works great. that script works off a ..... More

Print this item

  pymodbus
Posted by: jreckart - Oct-20-2023, 08:19 AM - Forum: Data Science - Replies (3)

I'm using pymodbus to read modbus data from a controller, using serial over an rs485 to usb. I can read coils, registers,etc all the normal stuff.
My..... More

Print this item

  Multiple variable inputs when only one is called for
Posted by: ChrisDall - Oct-19-2023, 10:15 PM - Forum: General Coding Help - Replies (2)

Hi all, trying to run a python code (not mine) that used a function generate_index(arg). The arg function is actually meant to have 5 parts (host, gra..... More

Print this item

  What a difference print() makes
Posted by: Mark17 - Oct-19-2023, 06:49 PM - Forum: General Coding Help - Replies (2)

Hi all,

list1 = ["cat", "dog", "cat", "dog"]
list1.index("cat")
list1.count("dog")
If I enter that in a Jupyter Notebook cell..... More

Print this item

  Better python library to create ER Diagram by using pandas data frames as tables
Posted by: klllmmm - Oct-19-2023, 12:59 PM - Forum: General Coding Help - No Replies

I'm looking for a better python library to create ER diagrams.

I want to input pandas tables as tables and then add relationships between tables.
..... More

Print this item

  Waiting screen until user input - PiBooth
Posted by: world90 - Oct-19-2023, 06:29 AM - Forum: Game Development - Replies (3)

hey guys,

in advance: I'm new in PyGame.

I'm working on a photo booth / photo box with the software "PiBooth" - https://github.com/pibooth/piboo..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Opencv findContours Q 8 hours ago jogl Pedroski55 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
Most views
  The best Prog... 580414
  Tutorial Requ... 519584
  Web Scraping ... 442785
  Newbie with P... 386985
  New Users Int... 386549
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zcharlesoogleto9533 Today
MaxTranslate Yesterday
pizofreude Yesterday
RockHound_Z12 Yesterday
braillescribe 12-28

User Panel Messages

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