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,933
» Latest member: tobey12
» Forum threads: 38,722
» Forum posts: 175,502

Full Statistics

Online Users
There are currently 55 online users.
» 0 Member(s) | 48 Guest(s)
Bing, Google, Applebot, AOL, AOL, DuckDuckGo

Latest Threads
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
36 minutes ago
» Replies: 0
» Views: 4
Expert Guidance Made Easy...
Forum: General Coding Help
Last Post: Alex12
1 hour ago
» Replies: 0
» Views: 14
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
5 hours ago
» Replies: 1
» Views: 345
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,346
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,462
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 288
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 96
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,809
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,060
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 747

 
  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: 271)
Print this item

Question in this code, I input Key_word, it can not find although all data was exact Help me!
Posted by: duchien04x4 - Aug-30-2023, 10:58 AM - Forum: General Coding Help - Replies (3)

[python]import requests
import tkinter as tk
from tkinter import filedialog
import re

# Thay thế các giá trị sau bằng thông tin thật của bạn
ac..... More


Attached Files

.txt   savecommentFACE.txt (Size: 2.19 KB / Downloads: 257)
Print this item

  A modernized magic trick
Posted by: Gribouillis - Aug-30-2023, 07:51 AM - Forum: Code sharing - No Replies

A few years ago, it occurred to me that if a Python instance obj had attributes 'spam' and 'eggs', ..... More

Print this item

  python Read each xlsx file and write it into csv with pipe delimiter
Posted by: mg24 - Aug-29-2023, 11:13 PM - Forum: General Coding Help - Replies (4)

Hi Team,

I am trying to Read xlsx file and I want to write it into CSV File with pipe delimited.all decimal values wanted to round up 6 decimal pla..... More

Print this item

  Need to replace a string with a file (HTML file)
Posted by: tester_V - Aug-29-2023, 09:17 PM - Forum: General Coding Help - Replies (1)

Greetings!
I need to send tons of emails, to do that I have to use an HTML file.
The string “ MessageBody” in the HTML file must be replaced with t..... More

Print this item

  Capturing BS4 values into DF and writing to CSV
Posted by: cubangt - Aug-29-2023, 07:52 PM - Forum: General Coding Help - Replies (18)

I have the below logic that im getting results from, but when righting to the csv, each data value is being written to row instead of collectively int..... More

Print this item

  Flask - use bootstrap styles in HTML
Posted by: Krayna - Aug-29-2023, 02:22 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi there
I'm new to Flask. I've created couple of apps following some tutorials. Now I'm working on my own project for work.

I noticed in the HTML f..... More

Print this item

  Python Online Compiler
Posted by: alexmaxwell1 - Aug-29-2023, 09:50 AM - Forum: News and Discussions - Replies (2)

Hi everyone,

If anyone is looking for a good Python online compiler to practice theirs's coding skills. I've been looking at a few different option..... More

Print this item

  Query database
Posted by: menator01 - Aug-29-2023, 08:14 AM - Forum: News and Discussions - No Replies

What would be a recommended amount of time to query a database to check for login status? I was thinking querying every five minutes.
Any and all com..... More

Print this item

  scammed through python keylogger
Posted by: Noq - Aug-28-2023, 08:04 PM - Forum: News and Discussions - Replies (12)

hello everyone, first of all, please don't judge me for what happened. I know myself that I am an idiot.

so, to keep it short, someone made me use ..... More

Print this item

  Current project - Simple tkinter login system
Posted by: menator01 - Aug-28-2023, 07:21 PM - Forum: Code sharing - Replies (3)

Just a simple login system. It's not complete, still have some details to work on and after maybe make a generic page class as I have some repeating c..... More

Print this item

  Starting and running .bat in background, tkinter in foreground
Posted by: ProfMeowintgon - Aug-28-2023, 11:49 AM - Forum: General Coding Help - Replies (9)

Hello,

as the title says, how can I achieve a (custom)tkinter window in the foreground (i.e. "maximized") and the cmd terminal which is started whe..... More

Print this item

Question bytes and strings
Posted by: Skaperen - Aug-28-2023, 02:58 AM - Forum: News and Discussions - No Replies

does anyone use the bytes type when dealing with ASCII characters, such as when the input provides the characters as bytes and/or (espec..... More

Print this item

  Installing Older Version Of Numpy & Pandas
Posted by: knight2000 - Aug-28-2023, 02:31 AM - Forum: General Coding Help - Replies (6)

Hi all,

I'm still pretty new to the world of Python. I'm using Pycharm and for the first time I'm trying to test a public project from Github. The..... More

Print this item

  Perform the same action in a browse game on multiple computers at the same time.
Posted by: learningpysh - Aug-28-2023, 12:49 AM - Forum: Networking - No Replies

I'm trying to develop an application split into two parts, server and client, that performs the same action on multiple devices at the same time. All ..... More

Print this item

  TypeError: conversion from bytes to Decimal is not supported
Posted by: Skaperen - Aug-27-2023, 05:41 PM - Forum: News and Discussions - Replies (2)

Output:
TypeError: conversion from bytes to Decimal is not supported
is supporting bytes all that hard to do?

Print this item

  Python beginner that needs an expression added to existing script
Posted by: markham - Aug-27-2023, 04:42 PM - Forum: General Coding Help - Replies (1)

I have a python script that scrubs emails and works well.

I need to add the ability to remove everything including and after the string "Still have..... More

Print this item

  CTkComboBox - not working
Posted by: Sedos101 - Aug-27-2023, 05:28 AM - Forum: General Coding Help - Replies (11)

Hi everyone
I am using customtkinter to make some comboboxes

Basically I have a list of Groups, which have their own corresponding models and buck..... More


Attached Files

.py   customtkinter1.py (Size: 65.96 KB / Downloads: 200)
Print this item

  MVC implementation issue
Posted by: gradlon93 - Aug-26-2023, 10:41 PM - Forum: GUI - Replies (5)

Good Evening everyone. I am working on an Hotel reservation system, that basically consists of a webscraper that picks rates from an hotel website and..... More


Attached Files

Thumbnail(s)
   
Print this item

  number of digits in a decimal.Decimal number object
Posted by: Skaperen - Aug-26-2023, 07:38 PM - Forum: News and Discussions - No Replies

given a decimal number (via args in a function, for example), i can find out how many digits it has with:
[python]
how_many_digits = len(str(a_decim..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How Reliable Is Assignmen... 36 minutes ago tobey12 tobey12 News and Disc...
  Expert Guidance Made Easy... 1 hour ago Alex12 Alex12 General Codin...
  Another app idea - intera... 5 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 575788
  Tutorial Requ... 497027
  Web Scraping ... 439798
  Newbie with P... 383488
  New Users Int... 365275
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+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
tobey12 Today
Alex12 Today
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday

User Panel Messages

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