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,243
» Latest member: dimitriwati
» Forum threads: 38,777
» Forum posts: 175,799

Full Statistics

Online Users
There are currently 47 online users.
» 1 Member(s) | 40 Guest(s)
Bing, Google, AOL, Apple, Mojeek, tsgiannis

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Less than 1 minute ago
» Replies: 5
» Views: 134
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Today, 05:37 AM
» Replies: 1
» Views: 64
Data Science
Forum: Data Science
Last Post: mamta25
Today, 05:27 AM
» Replies: 3
» Views: 2,582
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 156
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 143
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 143
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,429
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,386
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,585
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 221

 
  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: 239)
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 (4)

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

  newbie question - can't make code work
Posted by: tronic72 - Oct-19-2023, 06:07 AM - Forum: General Coding Help - Replies (2)

Hi,

New to python and doing a course by Mosh. I have a tutorial with the following code that will NOT work no matter what I do.

[python]class A..... More

Print this item

  Using Autostart to run a GUI program at startup. Rpi
Posted by: Edward_ - Oct-19-2023, 01:00 AM - Forum: General Coding Help - Replies (1)

I have been using an autostart display.desktop file as explained in Sec. 3 ..... More

Print this item

  How to run a linear model by group in Python?
Posted by: Betty775522 - Oct-18-2023, 07:09 PM - Forum: Data Science - No Replies

Dear all,
I’m beginning with Python that I need to use to run a linear model for the dataset below :
[output]Location Y X1 X2
1 32 ..... More

Print this item

  subtract 2 datetime string
Posted by: jss - Oct-18-2023, 02:40 PM - Forum: General Coding Help - Replies (4)

I have a code like below

from datetime import datetime
time_uploaded="2023-09-26T11:22:42.2Z"
time_now =datetime.now()
i ..... More

Print this item

  Error 403 Scraping website
Posted by: cartonics - Oct-18-2023, 02:40 PM - Forum: General Coding Help - Replies (17)

I am tryng to scrape data from forebet website
https://www.forebet.com/en/live-football-tips

[python]from bs4 import BeautifulSoup

import reque..... More

Print this item

  Why does [root.destroy, exit()]) fail after pyinstaller? Rpi
Posted by: Edward_ - Oct-18-2023, 01:29 PM - Forum: General Coding Help - Replies (4)

I have a small GUI app with a close button that works as expected when the app is run in Thonny, but the Exit button code fails in the binary file cre..... More

Print this item

  [split] Issue installing selenium
Posted by: Akshat_Vashisht - Oct-18-2023, 12:10 PM - Forum: General Coding Help - Replies (1)

Selenium was working fine in my system but some connection error were coming, So I have uninstalled it. Now, After restarting the system I am unable t..... More

Print this item

  how to parse with BeautifulSoup
Posted by: Larz60+ - Oct-18-2023, 11:22 AM - Forum: General Coding Help - Replies (3)

This format is confusing me.

What is the best way to parse into individual components with BeautifulSoup.

html:
[output]
<td class="small">
..... More

Print this item

  problem in entering address of a file in input
Posted by: akbarza - Oct-18-2023, 08:16 AM - Forum: General Coding Help - No Replies

hi
i read https://realpython.com/introduction-to-p...enerators/
there is a ..... More

Print this item

  problem in using input command
Posted by: akbarza - Oct-18-2023, 08:16 AM - Forum: General Coding Help - Replies (4)

hi
i read https://realpython.com/introduction-to-p...enerators/
there is a ..... More

Print this item

  mypy, type aliases and type variables
Posted by: tomciodev - Oct-18-2023, 07:34 AM - Forum: General Coding Help - Replies (1)

I'm not sure, whether it's a good place to ask such question. If it's not, please tell me, where it suits better.

I use Python 3.11/3.12, and mypy ..... More

Print this item

  Writing to CSV Problems
Posted by: gbtur8up - Oct-18-2023, 12:50 AM - Forum: General Coding Help - Replies (1)

Hello all, I'm pretty unfamiliar with Python and am encountering an error with the attached code in writing the output data to a CSV. The idea is to r..... More

Print this item

Video Get a executable file (.exe) from a .py file add a promoted class in a QWidget
Posted by: MiguelonReyes - Oct-17-2023, 11:31 PM - Forum: GUI - No Replies

Hi!! guys,
I am trying to get a .exe file ready to be executed from a click of a button on a screen (QMainWindow). In fact, in the past I have done ..... More


Attached Files

.py   000_Main.py (Size: 6.61 KB / Downloads: 234)
.py   mplwidget.py (Size: 698 bytes / Downloads: 274)
.py   SC002_GetChart_plotter.py (Size: 3.48 KB / Downloads: 281)
Print this item

  Sudoku making with base Python
Posted by: wep - Oct-17-2023, 05:46 PM - Forum: Homework - Replies (1)

Good evening,

i am doing some exercises from the course i am attending and one of them is requiring me to realize with base Python a valid sudoku 4..... More

Print this item

  output values change
Posted by: akbarza - Oct-17-2023, 10:11 AM - Forum: General Coding Help - Replies (3)

hi
int the below code:
[python]
def something(num,my_list):
num=3
my_list[0]=3

a=2
b=[2]
something(a,b)
print(a)
# 2 is printed
p..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... Less than 1 minute ago tsgiannis tsgiannis GUI
  [split] print two differe... Today, 05:37 Reema Gribouillis General Codin...
  Data Science Today, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
Most views
  The best Prog... 578746
  Tutorial Requ... 509487
  Web Scraping ... 441878
  Newbie with P... 385844
  New Users Int... 375429
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
dimitriwati Today
johnsonlucas83 Today
ColorTig Today
AcoolPurpleOne1863 Today
racingsubby Today

User Panel Messages

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