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,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 58 online users.
» 1 Member(s) | 48 Guest(s)
Google, Applebot, Bing, Facebook, AOL, kshahzad1985

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:56 AM
» Replies: 4
» Views: 126
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 106
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 77
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 117
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,135
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,371
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,565
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 192
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,200
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,446

 
  Pulling Specifics Words/Numbers from String
Posted by: bigpapa - May-01-2023, 06:43 PM - Forum: General Coding Help - Replies (2)

Hi There,

I know this may seem like a silly question because there might be 1000s of tutorials but I just can't quite figure it out.

I have a ..... More

Print this item

  Help with a regex? (solved)
Posted by: wrybread - May-01-2023, 02:57 AM - Forum: General Coding Help - Replies (3)

I'm trying to isolate the number in a filename that can look like these:

DJI_0991.MP4
DJI_0992 - testing.MP4

The pattern is that it always star..... More

Print this item

  When I hit the space bar from the home screen, it sends me to the game over screen
Posted by: JesusisKing - Apr-30-2023, 07:25 PM - Forum: Game Development - Replies (2)

ok, this is driving me nuts, i cant seem to figure out why when i press the space bar from the home screen, it sends me straight to the game over scre..... More

Print this item

  Curious about decorator syntax
Posted by: rjdegraff42 - Apr-30-2023, 01:58 PM - Forum: General Coding Help - Replies (14)

I'm curious as to the rationale behind the choice of decorator syntax for getters and setters. Take, for example:
[CODE]
@property
def prop..... More

Print this item

  Need some help with Pytrends
Posted by: cmg15326 - Apr-30-2023, 01:27 PM - Forum: General Coding Help - Replies (4)

Hey! Shy So I did set up Jupyter Lab and followed some tutorials on how to request data from Google Trends. Somehow I get an Error and I don't re..... More

Print this item

  Feeling pretty discouraged
Posted by: 357mag - Apr-29-2023, 08:39 PM - Forum: News and Discussions - Replies (3)

I have done some console programming in several languages like C++, Python, C#, and Java. Had fun with it but I feel like I'd like to start doing some..... More

Print this item

  Library error
Posted by: M53RX1 - Apr-29-2023, 03:19 AM - Forum: News and Discussions - Replies (14)

hello, i have a problem, i installed this library https://github.com/ValvePython/steam/discussions
but I keep getting this error as if this library ..... More

Print this item

  File path by adding various variables
Posted by: Mishal0488 - Apr-28-2023, 05:21 PM - Forum: General Coding Help - Replies (2)

Hi Guys

This may be a really simple issue which has stumped me.
The "FPath" variable has two back slashes at the end.
In the current setup the c..... More

Print this item

  OSError with SMPT script
Posted by: Milan - Apr-28-2023, 01:34 PM - Forum: General Coding Help - No Replies

Hello team,

I have the following code

[python]import smtplib

my_email = "fdsa@gmail.com"
password = "asdfasdf"
connection = smtplib.SMTP("smtp.gmai..... More

Print this item

  Insert 10gb csv files into sql table via python
Posted by: mg24 - Apr-28-2023, 09:33 AM - Forum: General Coding Help - Replies (2)

Hi Team,

I want to insert CSV Records into sql table via python,
my csv file size is 10 gb,
I found this code on google, Can you suggest better..... More

Print this item

  search an element in pandas series
Posted by: learningPython - Apr-27-2023, 11:24 PM - Forum: General Coding Help - Replies (5)

Good Morning !

I am tyring below code and expecting to get a boolean output 'True' for index B. But I am always getting false. I am trying to use p..... More

Print this item

  "Import" Help
Posted by: Chief816 - Apr-27-2023, 10:52 PM - Forum: Homework - Replies (2)

I'm currently taking a free online course on Python and I am admittedly a beginner in Python as well as coding in general, but I am having an issue th..... More

Print this item

  How to resolve version conflicts in Python?
Posted by: taeefnajib - Apr-27-2023, 08:37 PM - Forum: General Coding Help - No Replies

Hello Pythonistas!
This is my first post here. So I apologize if I made any mistake while posting this question. I have a project in Python 3.10 wher..... More

Print this item

  Delete strings from a list to create a new only number list
Posted by: Dvdscot - Apr-27-2023, 10:56 AM - Forum: General Coding Help - Replies (8)

Hello,

I am doing a Python training course and am stuck at this question:

Got a list:
Char_List = ['Bla', 'Blu', 10, 20, 30, 40]

Want to hav..... More

Print this item

  GPS Points to map for game/simulator
Posted by: AvgPlum - Apr-26-2023, 08:37 PM - Forum: Game Development - Replies (1)

Hi All,
I'm new to attempting any game development but been fooling about with pygame a bunch and seems pretty intuitive as I've got a decent program..... More

Print this item

  Questions regarding usage of pandas library
Posted by: Pala - Apr-26-2023, 04:59 PM - Forum: General Coding Help - Replies (5)

[python]import pandas as pd
import matplotlib.pyplot as plt
# Open the text file in read mode
for i in range(1, 801):
file_name = f"C:/Users/p..... More

Print this item

  Using subprocess to execute complex command with many arguments
Posted by: medatib531 - Apr-26-2023, 01:47 PM - Forum: General Coding Help - Replies (5)

I have a shell script that is as follows:

[code]LOAD_RRD=sysmon.rrd
DISK_RRD=disk.rrd
DISKTEMP_RRD=disktemp.rrd

rrdtool graph load1h.png \
..... More

Print this item

  Keyboard hotkeys
Posted by: purushothama2222 - Apr-26-2023, 12:02 PM - Forum: General Coding Help - Replies (4)

I wanted to assign right sided control key as a hotkey to a function using keyboard.add_hotkey, but unfortunately I am not finding specific code to as..... More

Print this item

  can't find libpHash
Posted by: flash77 - Apr-26-2023, 11:32 AM - Forum: General Coding Help - Replies (14)

Dear community,

I want to use the 3 pHash functions (ph_dct_imagehash, ph_image_digest and ph_mh_imagehash) to compare which fits best for me...
..... More

Print this item

  Any tips to how to find out values?
Posted by: nevlindan - Apr-26-2023, 10:37 AM - Forum: General Coding Help - Replies (1)

Hello 😊

I am super new to python and can’t get around the below topic. Hope this is not a stupid question…

Would anybody have a tip how to do th..... More

Print this item

  Simple screen scrape is baffling me.
Posted by: monty024 - Apr-26-2023, 02:04 AM - Forum: Web Scraping & Web Development - Replies (1)

Greetings,

I am just learning to screen scrape using beautiful soup. I have been doing well so far, but thought I would make a simple script th..... More

Print this item

  trouble with semicolons
Posted by: Skaperen - Apr-25-2023, 07:18 PM - Forum: News and Discussions - Replies (6)

i'm still having trouble with semicolons. but it does not seem to be the spacing issue i previously thought it was. here is my latest example (avoid..... More

Print this item

  Python Script to convert Json to CSV file
Posted by: chvsnarayana - Apr-25-2023, 04:48 PM - Forum: General Coding Help - Replies (8)

Hi All,

We have one requirement to convert Json to CSV file. In json file, values are there for all the columns, some columns are missing but when ..... More

Print this item

  Need help with sorting lists as a beginner
Posted by: Realist1c - Apr-25-2023, 03:39 AM - Forum: General Coding Help - Replies (1)

I am trying to sort scores from a list that was put into a text file and then transferred into another list. I have tried two methods (shown below) bu..... More


Attached Files

Thumbnail(s)
       
Print this item

  Pyspark dataframe
Posted by: siddhi1919 - Apr-24-2023, 07:48 PM - Forum: General Coding Help - Replies (3)

we have a requirement where we need to extract a value from a column of a dataframe and then we have to match this extracted value to another column o..... More

Print this item

  Text-Based RPG - After selecting correct decision it also prints others code
Posted by: KimJiwoo1 - Apr-24-2023, 07:29 PM - Forum: Game Development - Replies (1)

Hiya,

First off, apologies for a presumably hilarious error or gap in knowledge!

I, along with two others have been tasked with making a text-ba..... More


Attached Files

.pdf   Flow Chart - Game.pdf (Size: 123.04 KB / Downloads: 330)
Print this item

  python dictionary syntax
Posted by: nafshar - Apr-24-2023, 06:26 PM - Forum: General Coding Help - Replies (2)

can someone explain how the following dictionary definition is supposed to work?
Pycharm shows it as a syntaxial error, but the class I am taking sho..... More

Print this item

Question my pygame car wont move
Posted by: Erio85 - Apr-24-2023, 04:01 PM - Forum: Game Development - Replies (1)

hi like it says in the title my pygame car wont move unless the mouse is on the window and actively moving about. the window itself is updating (i kno..... More


Attached Files

.py   main.py (Size: 3.8 KB / Downloads: 323)
Print this item

  Homework, works but has logic error
Posted by: goldielocks789 - Apr-24-2023, 11:22 AM - Forum: Homework - Replies (3)

Hi, I am new to the forum and posting on behalf of my son, who has just started doing Python at school. He has done the code below to show someone ge..... More

Print this item

  Calculate AGE in years
Posted by: Kessie1971 - Apr-24-2023, 07:31 AM - Forum: Homework - Replies (17)

Hello

I want to try to calculate the age in years but in de output i get 1 day instead of 1 year

[python]from datetime import datetime, date
..... More

Print this item

  Chinook Database in Python (Albun Top 10)
Posted by: Kessie1971 - Apr-23-2023, 11:28 AM - Forum: Homework - Replies (10)

How do I make a python program that prints an album top 10 of the albums that have been listened to most often from the Chinook database. The output o..... More


Attached Files

Thumbnail(s)
   
Print this item

  Making a Class Person ?
Posted by: Kessie1971 - Apr-23-2023, 11:14 AM - Forum: Homework - Replies (3)

How do I create a Person class is a generic class, which only stores some basic attributes. These attributes are: name, sex and date of birth (as a da..... More

Print this item

  create a function format_date ?
Posted by: Kessie1971 - Apr-23-2023, 11:10 AM - Forum: Homework - Replies (7)

how do I create a function format_date() which takes a date string as an argument and returns a datetime object.

Example
Print (format_date(“24-1..... More

Print this item

  [SOLVED] [Windows] Fails reading strings with accents
Posted by: Winfried - Apr-23-2023, 10:22 AM - Forum: General Coding Help - Replies (1)

Hello,

On Windows, I'm trying to read a file that has accents. An hexdump shows that it's encoded in Latin1/ISO-8859-1, not UTF-8.

For some reas..... More

Print this item

  create a default path with idle to a specific directory
Posted by: greybill - Apr-23-2023, 04:32 AM - Forum: General Coding Help - No Replies

Currently when I save a python program I have to go through a path to the directory I want. How can I create a default preference for a path that wil..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... Today, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [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
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578703
  Tutorial Requ... 509227
  Web Scraping ... 441850
  Newbie with P... 385802
  New Users Int... 375135
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 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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