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,241
» Latest member: ColorTig
» Forum threads: 38,777
» Forum posts: 175,795

Full Statistics

Online Users
There are currently 41 online users.
» 1 Member(s) | 32 Guest(s)
Bing, Google, Facebook, Apple, deanhystad

Latest Threads
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
5 hours ago
» Replies: 1
» Views: 36
Data Science
Forum: Data Science
Last Post: mamta25
5 hours ago
» Replies: 3
» Views: 2,574
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
Yesterday, 10:15 PM
» Replies: 1
» Views: 100
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 148
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 128
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 128
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,324
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,381
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,584
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 207

 
  Python script that deletes symbols in plain text
Posted by: nzcan - Sep-05-2023, 03:46 PM - Forum: General Coding Help - Replies (3)

I need a python script that deletes all symbols in a plain text file.
For example, I want that all 'd', all 'f' and all '0' (zeros) in a plain text f..... More

Print this item

  BMI code
Posted by: Reznick - Sep-05-2023, 03:25 PM - Forum: General Coding Help - Replies (2)

hi recently i started learning python my first project is BMI calculator after coding in (python 3.11) when i execute my code i get error saying floa..... More

Print this item

  Find a string from a column of one table in another table
Posted by: visedwings049 - Sep-05-2023, 03:03 PM - Forum: General Coding Help - Replies (8)

I am using Python 3.9

I have created two pandas data frames from csv files
product and supplier


1. I have created a product table that splits a de..... More


Attached Files

Thumbnail(s)
   
Print this item

  Code challenge I need to solve for a Bootcamp
Posted by: ramonrocha - Sep-05-2023, 02:46 PM - Forum: General Coding Help - Replies (1)

CHALLENGE
A supermarket is doing a sale promotion of soft drinks. If one day you buy soda and take the empty hulls the next day, she exchanges each s..... More

Print this item

  An unexplainable error in .format statement - but only in a larger piece of code?
Posted by: ToniE - Sep-05-2023, 11:36 AM - Forum: General Coding Help - Replies (4)

I have a larger piece of python code, called from Apache2 on a Raspberry Pi. Python release is 3.11.4 on my Raspberry. The code snippet which creates..... More


Attached Files

.py   test_wsgi_script_no_PW.py (Size: 6.41 KB / Downloads: 231)
Print this item

  cinemagoer library problem
Posted by: lunacy90 - Sep-04-2023, 06:19 PM - Forum: General Coding Help - Replies (21)

I am trying to make an application that in part prints out the last 10 films released based on actor which means i want to exclude announced films if ..... More

Print this item

  sqlite3 Conn Insert Value Error
Posted by: TylerDunbar - Sep-04-2023, 04:10 PM - Forum: General Coding Help - Replies (3)

Hello - Thank you for reading my post. Quick disclaimer - Teaching myself python late in life (64 yrs). This is to support PhD. I am using "Python Day..... More

Print this item

Star Nodezator v1.4 released! (Python node editor in the public domain)
Posted by: KennedyRichard - Sep-04-2023, 01:42 PM - Forum: News and Discussions - No Replies

Hello, everyone!

I'm Kennedy Guerra, I'll be 33 this month. It's been over a year since I released Nodezator, the generalist multi-purpose Python n..... More

Print this item

  imdby package problem
Posted by: lunacy90 - Sep-04-2023, 12:25 PM - Forum: General Coding Help - Replies (8)

I am trying to build an app that connects on imdb module and will be able to access diferent kinds of information about the film in question
[python]..... More

Print this item

  how to move pip
Posted by: kucingkembar - Sep-04-2023, 11:52 AM - Forum: General Coding Help - Replies (6)

hi, sorry for my bad English,
my pip in C:\Users\PcUserName\AppData\Local
The C:\ drive is almost full, I would like to move it to the D:\ drive,
I..... More

Print this item

  Convert From PDf into JPEG Problem
Posted by: koklimabc - Sep-04-2023, 08:03 AM - Forum: General Coding Help - Replies (4)

I'd recently found one issuse from converting PDF into JPG file and It will be stopped at File Number 52 without continuous on.

I'd tried neither i..... More


Attached Files

Thumbnail(s)
   
Print this item

  to follow or not to follow a symlink in os.utime() os POSIX
Posted by: Skaperen - Sep-03-2023, 05:34 PM - Forum: News and Discussions - Replies (4)

in "16.1. os — Miscellaneous operating system interfaces" there is this text (in my PDF copy of "The Python Library Reference"):
[output]
You can ch..... More

Print this item

  SNUGBUG © CLI based chatroom app. The CLI IS HERE TO STAY !!
Posted by: itsakshaydilip - Sep-03-2023, 05:06 PM - Forum: News and Discussions - Replies (1)

[Image: 264742200-636114f6-5644-4802-aea5-2fd5e7ccea9a.png]

SNUGBUG CHAT APP

CLI based app..... More

Print this item

  problem in using mypy
Posted by: akbarza - Sep-03-2023, 02:56 PM - Forum: General Coding Help - Replies (17)

Hi
I installed on the Python mypy library.
I save my files on D drive in a folder.
In cmd, I changed the directory to the folder. Then I w..... More

Print this item

  Help needed for a program using loops
Posted by: PythonBoy - Sep-03-2023, 12:18 PM - Forum: Homework - Replies (5)

I got a homework to create a program whose output is like this:

*
**
***
****

I made use of for loop to make this program
My code:
[python]..... More

Print this item

  discrepancy with datetime with timezone
Posted by: XJia - Sep-03-2023, 05:52 AM - Forum: General Coding Help - Replies (3)

Can anyone please help explain about the following. why don't I get even numbers for the hours?

I'm running Python 3.10. The following is from ptpy..... More

Print this item

  'answers 2' is not defined on line 27
Posted by: 0814uu - Sep-02-2023, 09:58 PM - Forum: General Coding Help - Replies (4)

Hey, I'm doing a school project and I can't find my error on replit, could someone help me and correct it? Go easy on me as I just picked up coding ye..... More

Print this item

  How to do 100 runs simulation based on the current codes?
Posted by: dududada - Sep-02-2023, 08:18 PM - Forum: General Coding Help - Replies (6)

The current codes are already on the website: https://github.com/xunzheng/notears

linear.py allows me to run one-time simulation. https://github.com/..... More

Print this item

  Printing the variable from defined function
Posted by: jws - Sep-02-2023, 05:10 PM - Forum: General Coding Help - Replies (7)

Hi,

Quite new topython and this is a problem I have spent 1.5 hrs trying to work out, for context I wanted to define a function that would create a..... More

Print this item

  Unidecode issue
Posted by: DPaul - Sep-02-2023, 06:42 AM - Forum: Bar - Replies (5)

Hi,
In some pdfs I encounter references to the original parish register, like so: ref = ' RP 477; p. 148 r° '
I perform unidecode on all strings in ..... More

Print this item

  encode/decode to show correct country letters in a CTk combobox
Posted by: janeik - Sep-02-2023, 01:28 AM - Forum: General Coding Help - Replies (2)

hi.
I have a text file encoded utf-8
Reading it with i.e. notepad shows "sør-trøndelag"
Note the Norwegian character "ø"

Binary reading in Python, fr..... More


Attached Files

Thumbnail(s)
   
Print this item

  Why wont this path work one way, but will the other way?
Posted by: cubangt - Sep-01-2023, 01:04 PM - Forum: General Coding Help - Replies (2)

Im trying to run a python script using this as one of the paths to a text file that it needs in order to process

This wont work
[python]
\\server..... More

Print this item

  Cannot convert from timedelta64[ns] to timedelta64[h]
Posted by: NewBiee - Sep-01-2023, 06:29 AM - Forum: Data Science - Replies (1)

Hi,

I have this piece of code that used to work. I have upgraded Numpy and Pandas and now they don't seem to work.

[python] def astype(self, dty..... More

Print this item

  how to open a popup window in tkinter with entry,label and button
Posted by: lunacy90 - Aug-31-2023, 09:10 PM - Forum: General Coding Help - Replies (1)

I need to be able to open a pop up window with an Label, Entry and Button widgets. They have to be located from left to right (label/entry/button). I ..... More

Print this item

Question Web Scraping via Web App (Asking for Tips)
Posted by: MartinBecka - Aug-31-2023, 08:48 PM - Forum: Web Scraping & Web Development - No Replies

Hello, fellow programmers,

I am learning Python through working on personal projects and right now, I am trying to create web application product c..... More

Print this item

  Tkinter button images not showing up
Posted by: lunacy90 - Aug-31-2023, 05:06 PM - Forum: General Coding Help - Replies (7)

I have the following code



[python]
from tkinter import *
from tkinter import messagebox

def read_account_balance():
try:
wit..... More

Print this item

  Editing spreadsheet/csv
Posted by: BSDevo - Aug-31-2023, 04:15 PM - Forum: General Coding Help - Replies (6)

Hi, sorry if something wrong im new its my first post.
Im learning python but english is not my native language and i dont know how to properly put s..... More

Print this item

  Is it possible to extract 1 or 2 bits of data from MS project files?
Posted by: cubangt - Aug-31-2023, 03:03 PM - Forum: General Coding Help - Replies (8)

We have a weekly meeting with management to present current status on few projects that are going on.. Im looking to extract the % complete from each ..... More

Print this item

  FutureWarning: Logical ops (and, or, xor) between Pandas objects and dtype-less seque
Posted by: NewBiee - Aug-31-2023, 02:18 PM - Forum: Data Science - Replies (5)

I have had this method on my code, it's been working fine, but as of today my code fails on this method:

[python]def get_flags(series, flags, regex..... More

Print this item

  problem in import module from other folder
Posted by: akbarza - Aug-31-2023, 12:28 PM - Forum: General Coding Help - Replies (5)

hi
I typed this thread before, but my net was disconnected and I lost it.
by the pic : ..... More

Print this item

  A simple problem, how best to solve it?
Posted by: SuchUmami - Aug-31-2023, 10:22 AM - Forum: General Coding Help - Replies (2)

This seems quite simple compared to many problems I've had. However, I'm not finding an elegant solution at the moment.

I have two csv files and I'..... More

Print this item

  Task calendar problem
Posted by: humanical - Aug-30-2023, 07:50 PM - Forum: Homework - Replies (8)

Here is the task:
Analyzing weekends and holidays around New Year's and May 1st in Russia, the president of Flatlandia has concluded that the rest of..... More

Print this item

  Trying to debug segfault in ctypes binding to Fortran
Posted by: bthomas - Aug-30-2023, 07:30 PM - Forum: General Coding Help - Replies (1)

Hi,

I am just trying to learn creating Python bindings to legacy Fortran using the ctypes module. My code is segfaulting in the Fortran function in..... More

Print this item

  Python Mapped Strings
Posted by: edualfaia - Aug-30-2023, 04:25 PM - Forum: News and Discussions - Replies (12)

Hi experts
I have mapped, the strings below, the words that start win "-" with another string, for example "nrdbc" is equivalent to "n3DeleteBearerC..... More

Print this item

  textfile to customtkinter combobox
Posted by: janeik - Aug-30-2023, 01:49 PM - Forum: General Coding Help - Replies (6)

hello.

Goal: Insert list of country names, stored in a text file, into the combobox.
Idea, create a list of values-
Sadly, country names shows u..... More


Attached Files

.txt   inpland.txt (Size: 2.08 KB / Downloads: 280)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [split] print two differe... 5 hours ago Reema Gribouillis General Codin...
  Data Science 5 hours ago Oshadha mamta25 Data Science
  [Tkinter] I’m building a ... Yesterday, 22:15 tsgiannis woooee GUI
  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... 578730
  Tutorial Requ... 509417
  Web Scraping ... 441869
  Newbie with P... 385829
  New Users Int... 375324
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 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ColorTig Today
AcoolPurpleOne1863 Today
racingsubby Today
Reema Today
lary_p Yesterday

User Panel Messages

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