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,936
» Latest member: bennyanderson482
» Forum threads: 38,723
» Forum posts: 175,512

Full Statistics

Online Users
There are currently 45 online users.
» 2 Member(s) | 38 Guest(s)
Applebot, Google, Bing, AOL, kshahzad1985, LhanePulse

Latest Threads
Earnestinome
Forum: General Coding Help
Last Post: LhanePulse
1 minute ago
» Replies: 0
» Views: 1
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Gribouillis
44 minutes ago
» Replies: 2
» Views: 68
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 3,085
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,502
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 517
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 778
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,879
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 872
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 456
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,420

 
  is stdin a console
Posted by: Skaperen - Feb-06-2022, 12:29 AM - Forum: News and Discussions - Replies (2)

is there a portable way to determine if reading stdin will read from the console? i know how to do this in Linux and BSD, but no..... More

Print this item

  Beautifulsoup4 help
Posted by: samuelbachorik - Feb-05-2022, 06:15 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi iam trying to scrape some info from websites and i want to ask somebody who knows beautifulsoup if can show me how to get that price from this code..... More

Print this item

  help creating an array
Posted by: jenya56 - Feb-05-2022, 05:17 PM - Forum: General Coding Help - No Replies

I have a question. I have a dataframe in format ['x','y','z']. The columns have 100 values in them.
I also have created a regular grid in the follow..... More

Print this item

  Real time Detection and Display
Posted by: Gilush - Feb-05-2022, 04:07 PM - Forum: General Coding Help - No Replies

Hello all! :)

I'm trying to automate a mini-game inside 'Star Trek Online' where you have 4 rows and you have to point the mouse on the right row w..... More

Print this item

  Permission issue when using scapy
Posted by: jao - Feb-05-2022, 02:53 PM - Forum: General Coding Help - Replies (3)

Hello, I'm learning the Scapy tool and right from the start I'm having a problem i can't solve

Here's the Python code:

[python]
from scapy.all ..... More

Print this item

  Convert python to Qt c++
Posted by: panoss - Feb-05-2022, 01:14 PM - Forum: GUI - Replies (1)

This is the code I want to convert to Qt c++:
[python]
def createEditor(self, parent, option, index):
# column of combo box 'position'..... More

Print this item

  Boolean: Anybody know why is this True?
Posted by: LilD - Feb-05-2022, 09:40 AM - Forum: General Coding Help - Replies (8)

a, b, c = 9, 10, 11

Print ( 5>a and b<8 or 20>c>9)
>>> True

Print this item

  pyttsx3 problem
Posted by: Tyrel - Feb-05-2022, 08:53 AM - Forum: General Coding Help - No Replies

Good day,

I have made a voice assistant with python using pyttsx3 and converted it to an exe using auto-py-to-exe the voice assistant works perfect..... More

Print this item

Question Debian 11 Bullseye | Python 3.9.x | pip install mysql-connector-python-rf problems
Posted by: BrandonKastning - Feb-05-2022, 06:51 AM - Forum: General Coding Help - Replies (4)

Debian 11 Bullseye | Python 3.9.x | pip install mysql-connector-python-rf problems

I just installed a fresh Debian 11 Bullseye w/ Pyt..... More

Print this item

  alternative to using request module in python
Posted by: vlearner - Feb-05-2022, 06:00 AM - Forum: General Coding Help - Replies (2)

while using the python tutor site I am trying to import request module. But it is showing following error as shown in the image link.
kindly share th..... More


Attached Files

Thumbnail(s)
   
Print this item

  Loop Dict with inconsistent Keys
Posted by: Personne - Feb-05-2022, 02:44 AM - Forum: General Coding Help - Replies (1)

Hello guys,

I'm 4 days old with Python and Flask, I have a FlaskForm which works pretty well. This form has FieldList with BooleanField in. And I'm n..... More

Print this item

  Storing variables into one file for use in multiple Jupyter notebooks
Posted by: devansing - Feb-05-2022, 01:02 AM - Forum: General Coding Help - Replies (1)

Hi,

I'm working with a bunch of economic indicators (~50) using a couple of APIs and am trying to figure out the best way to compile them as variab..... More

Print this item

  How to iterate Groupby in Python/PySpark
Posted by: DrData82 - Feb-04-2022, 11:10 PM - Forum: General Coding Help - Replies (2)

I have to create several summary tables and include 2 below for simplicity. I'm trying to think of a way to minimize the code...rather than type out 1..... More

Print this item

  Converted Pipe Delimited text file to CSV file
Posted by: atomxkai - Feb-04-2022, 11:06 PM - Forum: General Coding Help - Replies (4)

Hello, I'm trying to add some columns with values such as index but I have an error in line 16. Hope anyone can help. Thanks!

[python]import csv
i..... More

Print this item

  pandas, tabulate, and alignment
Posted by: menator01 - Feb-04-2022, 08:53 PM - Forum: General Coding Help - Replies (3)

I been playing around with pandas and tabulate but, I am not able to figure out how to left align the text other than the first column.
I've searched..... More

Print this item

  shallowcopy of an object
Posted by: usercat123 - Feb-04-2022, 08:30 PM - Forum: General Coding Help - Replies (3)

Can somebody explain to me why in the following code, temp is equal to res after the loop body statement? I have tested it with input [1] and after th..... More

Print this item

  How to update the list of a combo box in a QTableView
Posted by: panoss - Feb-04-2022, 06:11 PM - Forum: GUI - Replies (10)

Panoss about 2 hours ago

I have a problem refreshing the data in the list of a combo box in a QTableView.
When you run the program (I have put all..... More

Print this item

  How to access previous row using itertuples
Posted by: SriRajesh - Feb-04-2022, 02:16 PM - Forum: General Coding Help - Replies (7)

Hi,
I have df with 10K rows, and if I use iterrows its become slower. Then I use itertuples & getattr. How ever I also need to access previous row. ..... More

Print this item

  Append files and add column with last part of each filename
Posted by: NiKirk - Feb-04-2022, 07:17 AM - Forum: General Coding Help - No Replies

I hope one of you are willing to help a complete Python beginner. I have managed to create my first script where I append multiple excel files in a fo..... More

Print this item

  I need to copy all the directories that do not match the pattern
Posted by: tester_V - Feb-04-2022, 04:36 AM - Forum: General Coding Help - Replies (7)

Greetings!
I need to copy all the directories that do not match the pattern:
8 alphanumeric characters all capital, underscore, and the 4 digits at ..... More

Print this item

  Preventing Duplicate Placement in 2D Array
Posted by: nickdavis2017 - Feb-03-2022, 10:37 PM - Forum: General Coding Help - Replies (2)

Hello all,

I'm writing a code to simulate respiratory virus propagation in a population. The code is massive, so attached is a small tidbit of it. Th..... More


Attached Files

.py   vm_placement.py (Size: 607 bytes / Downloads: 293)
Print this item

  arkanoid / breakout clone
Posted by: flash77 - Feb-03-2022, 06:39 PM - Forum: Game Development - Replies (2)

Hello,
I'm trying to code an arkanoid / breakout clone.
I have to check if the ball collides with the paddle or with one of the bricks (Later I want..... More


Attached Files

.txt   ball.txt (Size: 1.41 KB / Downloads: 309)
.txt   brick.txt (Size: 717 bytes / Downloads: 334)
.txt   main.txt (Size: 2.98 KB / Downloads: 321)
.txt   paddle.txt (Size: 506 bytes / Downloads: 302)
Print this item

  can re do this?
Posted by: Skaperen - Feb-03-2022, 06:23 PM - Forum: News and Discussions - Replies (15)

maybe re can do this but regular expressions just make no sense in my mind. i need to split a string with the separator(s) being any co..... More

Print this item

  String Matching Using python
Posted by: SathiyaBeegam - Feb-03-2022, 06:11 PM - Forum: Data Science - Replies (2)

Hi,

I have two files with Item names. I have to match Item name from one file to another using python. I tried fuzzywuzzy and RapidFuzzy, but the m..... More


Attached Files

.xlsx   File_ToMatch.xlsx (Size: 11.72 KB / Downloads: 0)
.xlsx   Master_File.xlsx (Size: 16.06 KB / Downloads: 0)
Print this item

  ModuleNotFoundError only if script is launched by cron
Posted by: Charles33 - Feb-03-2022, 05:19 PM - Forum: General Coding Help - Replies (8)

Hello

I want to launch a python program at start of the system, which uses openCV.
unfortunately, I get a ModuleNotFoundError on cv2 ONLY when the..... More

Print this item

  using Python pyserial
Posted by: ajitnayak87 - Feb-03-2022, 04:58 PM - Forum: General Coding Help - Replies (3)

Here is a sample code is written for pyserial. I need some help in improvising the code.

WSt will have
systemdate
systemtime

Serial data rece..... More

Print this item

  Need Help writing data into Excel format
Posted by: ajitnayak87 - Feb-03-2022, 04:49 PM - Forum: General Coding Help - Replies (8)

I have the below code. I have one counter. if counter less than value set value It should write the value into excel.
in below code I could see coun..... More

Print this item

  Text Order is Kinda Messed Up?
Posted by: Prithak - Feb-03-2022, 04:00 PM - Forum: General Coding Help - No Replies

This code doesn't really work on it's own but you have to make an index.html file with the code below the python code.. Without getting out of context..... More

Print this item

  Getting pip to work
Posted by: hammer - Feb-03-2022, 03:38 PM - Forum: General Coding Help - Replies (8)

I get a syntax error trying to use pip. See several attempts below.

[python]
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linu..... More

Print this item

  Web scraper
Posted by: tomenzo123 - Feb-03-2022, 12:03 PM - Forum: Web Scraping & Web Development - Replies (8)

Hi everyone, so this is my first time ever using python script, and I would like to create an web scraper, to scrap prices, names, dates, and stuff li..... More

Print this item

  Save data frame to .csv df.to.csv()
Posted by: mcva - Feb-03-2022, 11:48 AM - Forum: General Coding Help - Replies (1)

Hi everyone

I need to write a .csv file at each iteration of the following loop. I need to change the name of the .csv file at each iteration. The na..... More

Print this item

  How to immediately kill and restart a thread while using a time.sleep() inside it?
Posted by: philipbergwerf - Feb-03-2022, 11:22 AM - Forum: General Coding Help - Replies (4)

I made this little example where a cursor is blinking on the canvas:
[python]from tkinter import *
from threading import Thread
from time import sleep..... More

Print this item

  How to vectorize a calculation
Posted by: Tuxedo - Feb-03-2022, 01:14 AM - Forum: General Coding Help - Replies (2)

I have a 1D array containing ending values of a financial computation that has n elements and a matrix of inflation factors that has n rows and w colu..... More

Print this item

  Bouncing Ball
Posted by: Fell - Feb-03-2022, 12:15 AM - Forum: GUI - Replies (1)

Hi,

New(ish) Python user here. I'm trying to create a (Windows) program that places a sprite (a small bouncing ball) directly on the screen, on top..... More

Print this item

Bug beginner attempting to make chatbot
Posted by: MonikaDreemur - Feb-02-2022, 09:38 PM - Forum: General Coding Help - Replies (1)

hi! i'm pretty new to python- i mean, i've taken classes, but i haven't taken college-level ones or anything. anyway, could you help me debug this bit..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Earnestinome 1 minute ago LhanePulse LhanePulse General Codin...
  C++ program embedding Pyt... 44 minutes ago Alexandros Gribouillis General Codin...
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
Most views
  The best Prog... 576048
  Tutorial Requ... 497525
  Web Scraping ... 440005
  Newbie with P... 383771
  New Users Int... 366282
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+ 12089
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bennyanderson482 Today
AstoundzSEO Today
tobey12 Today
alexguemez Yesterday
Shadab Yesterday

User Panel Messages

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