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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

Online Users
There are currently 40 online users.
» 1 Member(s) | 36 Guest(s)
Bing, Google, Twitter, mamta25

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
Yesterday, 10:18 AM
» Replies: 1
» Views: 61
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 09:52 AM
» Replies: 11
» Views: 273
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 09:41 AM
» Replies: 3
» Views: 118
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 05:07 AM
» Replies: 5
» Views: 253
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 97
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,609
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 198
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 179
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,004
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,416

 
  Reading an ASCII text file and parsing data...
Posted by: oradba4u - Jun-07-2024, 04:55 PM - Forum: General Coding Help - Replies (2)

I have attached a sample Scores file from a HR Derby app (qaz.txt). it is an ASCII text file.
I am attempting to write a python program to read this ..... More


Attached Files

.py   derby_read.py (Size: 1.89 KB / Downloads: 236)
.txt   qaz.txt (Size: 35.87 KB / Downloads: 229)
Print this item

  colomns error
Posted by: konya42 - Jun-07-2024, 08:18 AM - Forum: General Coding Help - No Replies

[python][quote]import pandas as pd

# Location of the Excel file and the name of the sheet
file_path = r'C:\Users\elf\Desktop\BUY.xlsx'
sheet_name..... More

Print this item

  Most efficient way to roll through a pandas dataframe?
Posted by: sawtooth500 - Jun-07-2024, 03:31 AM - Forum: General Coding Help - Replies (2)

See the below example of a pandas df.

Assumptions - The datetime index will ALWAYS be at 1 second interval

So I need a "rolling" window of this..... More

Print this item

  Explosion hits enemies, they explode as well
Posted by: flash77 - Jun-06-2024, 07:22 PM - Forum: Game Development - Replies (4)

Hello,
I'm currently programming a small game and, apart from 2 topics, I'm almost finished. There is one topic I would like to ask about today. When..... More

Print this item

  HTTP, python size e upload file
Posted by: it6 - Jun-06-2024, 01:06 PM - Forum: Networking - No Replies

Hello everyone,

I need to use the HTTP API of transfernow (https://developers.transfernow.net/) to implement a Python application that allows you t..... More

Print this item

  Do any of you work with a devopment team?
Posted by: phpjunkie - Jun-06-2024, 08:26 AM - Forum: Bar - Replies (1)

If you do, do you have a supervisor that checks your code?

Print this item

Question Tetris... xpos, ypos of next block is not initialized after hard drop
Posted by: dddd123p - Jun-06-2024, 06:05 AM - Forum: Game Development - No Replies

(sorry poor english)
Hello.
I have trouble in making tetris.
I can't make xpos, ypox of next block be initialized after hard drop.
How I mo..... More

Print this item

  Downloading Page Source From URL List
Posted by: zunebuggy - Jun-05-2024, 06:51 PM - Forum: General Coding Help - Replies (11)

[python]from urllib.request import urlopen
from pathlib import Path

with open(r'D:\Desktop\sites.txt', 'r', encoding='UTF-8') as file:
while ..... More

Print this item

  raspberry pi in a python script
Posted by: Raysz - Jun-05-2024, 12:44 PM - Forum: General Coding Help - Replies (5)

Quote:Hey everyone
so I have this simple function for my raspberry pi
and I made a python file it does work

[python]
from gpiozero ..... More

Print this item

  Webscrape script, add to run every day at a specific time
Posted by: jjcooper - Jun-04-2024, 05:51 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,

I have the following code which pulls data from the web (Booking.com). Does anyone know how to add code to it which would run it every day a..... More

Print this item

  <Figure size 640x480 with 0 Axes> problem during plotting in matplotlib
Posted by: Kashfi - Jun-04-2024, 12:07 PM - Forum: Data Science - Replies (1)

I am trying to plot a PDP plot using Matplotlib, but I find an error that indicates that figures were created but nothing was drawn on it.
This is my..... More


Attached Files

Thumbnail(s)
       
Print this item

  Error Calculating Circle Area in Python
Posted by: aaronramsdale - Jun-04-2024, 07:20 AM - Forum: General Coding Help - Replies (1)

I'm working on a Python script to calculate the area of different shapes. I have functions defined for calculating the area of a square and a rectangl..... More

Print this item

  Having difficulty with threads and input()
Posted by: sawtooth500 - Jun-03-2024, 07:34 PM - Forum: General Coding Help - Replies (13)

Hello,

I have the below function running on it's own thread:

[python]
def handle_input(ws, stop_event):
while not stop_event.is_set():
..... More

Print this item

  DEC pack, unpack and disk-images
Posted by: Curbie - Jun-03-2024, 06:57 PM - Forum: General Coding Help - Replies (32)

Pyton newbie here, but programming in one language or another 50 years. Someone who’s opinion I trust said I should look into python because of it’s r..... More

Print this item

Shocked async was never was never awaited but the await is still in the code
Posted by: Nietzsche - Jun-03-2024, 05:00 PM - Forum: General Coding Help - Replies (3)

Hello, in this script i get an freezing window after i activate the checkbox IR raw:

[python]import pyqtgraph as pg
from PyQt6.QtWidgets import QM..... More

Print this item

  3-d surface plotting
Posted by: Tuxedo - Jun-03-2024, 04:59 PM - Forum: General Coding Help - Replies (11)

Looking for a Python package for publication quality 3d surface plots. The surfaces I deal with have just a single peak but can have odd shapes near ..... More

Print this item

  Please Help With Syntax - New To Python 3
Posted by: jgbarber65 - Jun-03-2024, 03:07 PM - Forum: General Coding Help - Replies (4)

I am new to Python 3, old to BASIC and VB. I have a text list of URLs and I want to increment through the list and simply save the HTML of each URL a..... More

Print this item

  Troubleshooting Jupyter Notebook installation with Python using pip and a venv
Posted by: Drone4four - Jun-03-2024, 01:00 AM - Forum: General Coding Help - Replies (1)

I’m struggling to set up and manage my Jupyter Notebook development environments.

..... More

Print this item

  Extracting the correct data from a CSV file
Posted by: S2G - Jun-02-2024, 08:07 PM - Forum: General Coding Help - Replies (6)

Writing a code where I can extract data from this file.

.csv   satellites.csv (Size: 8.59 KB / Downloads: 252)
Someone able to help to write a code that can, for example:

"Print a..... More

Print this item

Bug Debugging live plotting data
Posted by: Nietzsche - Jun-02-2024, 03:59 PM - Forum: General Coding Help - Replies (1)

Hello,

i have an phyton script for live plotting data. First i send 2 arrays via 100 numbers via ble to my PC (esp32 C++). Then i handle the data in ..... More

Print this item

Bug Copying methods to effect the new owner instead of the old instance
Posted by: Daniel285 - Jun-02-2024, 02:02 PM - Forum: General Coding Help - Replies (2)

Here is my code, with a small debug loop...

[python]
class foo:
def __init__(self, message="hello Damien", rotation=0):
self.message..... More

Print this item

  is this a valid variable name?
Posted by: Skaperen - Jun-02-2024, 03:07 AM - Forum: General Coding Help - Replies (6)

i have a str and i want to test if it is a valid variable name in the running version of Python. is str.isalpha() sufficient to perform such a..... More

Print this item

  Python Code Help - pip install PyMuPDF python-docx pillow
Posted by: Splishsplash92 - May-31-2024, 09:04 PM - Forum: General Coding Help - Replies (3)

I have this code below. The purpose of the code is to: extract the paragraphs that include an asterisk and its associated photos, from a PDF document,..... More

Print this item

  equalto validator doesnt work
Posted by: robertkwild - May-31-2024, 05:47 PM - Forum: General Coding Help - Replies (1)

hi all,

my code below doesnt work ie the new password and confirm new password, the user on the web when they click the submit button they dont get..... More

Print this item

  Need help setting up trusted root ca in virtual environment
Posted by: dstempfley - May-31-2024, 03:14 PM - Forum: General Coding Help - No Replies

I have a RHEL 8 system and am writing a script that uses requests to access an internal website. The environment is configured with the internal cert..... More

Print this item

Question Install Python Using ShellScript
Posted by: Sudheer - May-31-2024, 10:44 AM - Forum: General Coding Help - Replies (1)

Hi,

I have a requirement like to install Python using shellscript...

I'm able to download it, but couldn't silent the steps after downloading
..... More


Attached Files

Thumbnail(s)
   
Print this item

  Need help to identify CNA for automation
Posted by: qatester - May-31-2024, 09:24 AM - Forum: General Coding Help - No Replies

I am trying to automate connecting to a captive network assistant (CNA). Once I change the ssid a popup appears (CNA) and asks the user to either cli..... More

Print this item

  Need help with a while loop
Posted by: ampereap - May-31-2024, 01:27 AM - Forum: General Coding Help - Replies (4)

I'm teaching myself Python over the summer, and I am using the MIT OWC class to get started. In the second problem set we are trying to figure out ho..... More

Print this item

  How can i get the top smallest and top highest value for each row in pandas?
Posted by: mahmoudr899 - May-30-2024, 08:06 PM - Forum: General Coding Help - Replies (4)

I have data that I have sorted, below is a sample of the data:

[output]
missing_values count
0 51
3 ..... More

Print this item

  Need Assistance with Creating an AI Chatbot for Client's Website
Posted by: LauraB - May-30-2024, 04:39 PM - Forum: General Coding Help - Replies (4)

I'm working on a project for a client who wants to integrate an AI chatbot into their website. The chatbot should be able to handle customer inquiries..... More

Print this item

  How to group related products in relationship groups?
Posted by: RegionHUser - May-30-2024, 04:26 PM - Forum: General Coding Help - Replies (2)

Hi,

I have a dataset which consists of relationships between old product and new product. I would like to have them grouped into relationship group..... More

Print this item

  Is changing processes by using match with type function impossible?
Posted by: cametan - May-30-2024, 01:42 PM - Forum: General Coding Help - Replies (1)

Hello.

I know to distinguish 'type' is usually with isinstance function, but examine this:

[python]
def what_is_it(x):
def format():
..... More

Print this item

  web scraping problem
Posted by: jacksfrustration - May-30-2024, 12:07 PM - Forum: General Coding Help - Replies (1)

im trying to build a web scraper using BS4. i want to filter news articles and only get the href links of all the articles that have above a number of..... More

Print this item

  Input error correction.
Posted by: shakoun - May-30-2024, 08:51 AM - Forum: General Coding Help - Replies (4)

I want to catch an input error and allow the user to correct it.

Print this item

  UTF-8 to UTF-16 and UTF-16 to UTF-8
Posted by: Skaperen - May-30-2024, 02:37 AM - Forum: Bar - No Replies

i need to do some conversion between UTF-8 and UTF-16 (both ways). what can Python do for this? any commands already developed in Python (i take C i..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding Yesterday, 10:18 lary_p Larz60+ Homework
  [Tkinter] I’m building a ... Yesterday, 09:52 tsgiannis tsgiannis GUI
  Help with Serial.write in... Yesterday, 09:41 racingsubby Larz60+ General Codin...
  Backward compatibility qu... Yesterday, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [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
Most views
  The best Prog... 578822
  Tutorial Requ... 509815
  Web Scraping ... 441914
  Newbie with P... 385908
  New Users Int... 376004
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Kacper Yesterday
isla123456 Yesterday
vibrometro Yesterday
thebigback 11-10
dimitriwati 11-10

User Panel Messages

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