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

Full Statistics

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

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

 
  Replace string in a nested Dictianory.
Posted by: SpongeB0B - Mar-24-2023, 10:42 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

I've got a huge nested dict from a yaml call
[python]
with open('MyYamlFile.yml', 'r') as file:
yml_test = yaml.safe_load(file)
[..... More

Print this item

  zfill prints extra et the end of a var
Posted by: tester_V - Mar-24-2023, 01:59 AM - Forum: General Coding Help - Replies (4)

Greetings to you all!
I'm trying to replace single digits at the beginning of each string in a files
The integers are always in the range of 1-12.
..... More

Print this item

  Loop through json file and reset values [SOLVED]
Posted by: AlphaInc - Mar-23-2023, 07:54 PM - Forum: General Coding Help - Replies (2)

Hello everybody,

I have a json file which stores information for different people, which looks like this:
[python]{
"person":
[
..... More

Print this item

  why did python run in this case?
Posted by: Skaperen - Mar-23-2023, 05:50 PM - Forum: News and Discussions - Replies (2)

i was trying to run a big command in a bash shell in a non-root user under Xubuntu 20.04 involving a bash loop, system binary commands, and one binary..... More

Print this item

  .py pandas matplotlib .xlsx files
Posted by: QubeStory - Mar-23-2023, 08:16 AM - Forum: General Coding Help - Replies (1)

I am facing a problem with my Python script and I hope someone can help me with it.

I have a list of file names, such as f1, f2, f3, etc. These files..... More

Print this item

  How do I write all csv records to Excel ?
Posted by: Revox - Mar-23-2023, 04:25 AM - Forum: General Coding Help - Replies (2)

Dear Pro !!
Can you Help me please with this issue ?

I wrote the following code to copy all csv to exist excel file
but It C..... More

Print this item

  New zealand Trivia Quiz
Posted by: SEWII - Mar-23-2023, 01:41 AM - Forum: Homework - Replies (7)

Can someone make or help with creating a NZ Trivia Quiz Using only one for loop, lists, While True loop and no use of functions.

Create a New Zeala..... More

Print this item

  comparing zero leading number with a number
Posted by: tester_V - Mar-22-2023, 10:15 PM - Forum: General Coding Help - Replies (6)

Greetings!
I'm comparing 1 with 01 or 2 with 02 and the snippet errors out.
I'm puzzled why.

d = 1
dd = 01
print(d==dd)
Thank..... More

Print this item

  tkinter help please
Posted by: juliolop - Mar-22-2023, 07:45 PM - Forum: GUI - Replies (11)

hi guys!
why this code doesn't work as I want ?
I've tried several ways but it does the same,
it shows the scrolled bar widget at the end of the ..... More

Print this item

  Dictionary
Posted by: freethrownucleus - Mar-22-2023, 05:24 PM - Forum: General Coding Help - Replies (3)

How can I get just numbers as int or float type from this dictionary named brand?

brand: {'BMW': 1983, 'Audi': 1986, 'Opel': 1992}

Print this item

Smile help me to sokve this problem
Posted by: alexsendlegames100 - Mar-22-2023, 04:35 PM - Forum: GUI - Replies (1)

[python]

import tkinter as tk
from tkinter import ttk
from tkinter import messagebox

# Import necessary modules for animations
import time
f..... More

Print this item

  Delete all Excel named ranges (local and global scope)
Posted by: pfdjhfuys - Mar-22-2023, 04:12 PM - Forum: General Coding Help - Replies (2)

Hi,

I have an Excel Workbook. I am using the openpyxl package. I don't know how many worksheets I have nor do I know the named ranges.

My goal..... More

Print this item

Question __init__ of Child Class
Posted by: zero_fX0 - Mar-22-2023, 02:40 PM - Forum: General Coding Help - Replies (4)

Hello all,
Base is parent and Child inherited .
Should argument(s) in the __init__of the child class be same as what we have in the ..... More

Print this item

  create exe file for linux?
Posted by: korenron - Mar-22-2023, 01:23 PM - Forum: General Coding Help - Replies (2)

Hello,
is there any way to create kind of exe file for my python code ?

in Windows I use

pyinstaller --onefile test.py
and I ..... More

Print this item

  Greek letters with .readline() and tkinter
Posted by: KinkgOfKeks - Mar-22-2023, 06:42 AM - Forum: General Coding Help - Replies (7)

I am currenty working on a projekt with tkinter(Python 3.11.2), for wich I have to use the greek alphabet. The Problem is, that if I try to write gre..... More

Print this item

  Serial Port As Global
Posted by: Prasanjith - Mar-22-2023, 02:59 AM - Forum: General Coding Help - Replies (2)

How do I define the selected port as global so I can call it anywhere in my code.

In below code I have selecting the serial port inside a function...... More

Print this item

  extracting x from '(x)' as an integer number
Posted by: Hwolff1962 - Mar-22-2023, 02:42 AM - Forum: General Coding Help - Replies (3)

I have a file and I figured out how to extract and strip the line per line data I need from it but...I end up with the numbers representing individual..... More

Print this item

  Create new folders and copy files
Posted by: cocobolli - Mar-21-2023, 10:29 PM - Forum: General Coding Help - Replies (3)

My task: I have a folder containing many folders named after projects. These project folders have various amounts/levels of subfolders. I want to crea..... More

Print this item

  Upgrading pip behind a firewall
Posted by: tester_V - Mar-21-2023, 09:25 PM - Forum: Networking - Replies (2)

Greetings!
I'm having a problem upgrading pip from behind a firewall.
I usually have no problems installing modules:
[python]
pip --proxy http://p..... More

Print this item

  Python Serial: How to read the complete line to insert to MySQL?
Posted by: sylar - Mar-21-2023, 08:58 PM - Forum: General Coding Help - Replies (1)

Hello. Sorry for my bad English, it's not my first language.
I have created a python code to insert data from a DHT11 sensor into a mysql table. Eve..... More

Print this item

  Sample training small model
Posted by: AndrzejB - Mar-21-2023, 07:43 PM - Forum: Data Science - Replies (3)

I am just starting deep learning. I now have only laptop without dedicated GPU.
I search code and dataset for deep learning model in reasonable time ..... More

Print this item

  Networking Issues - Python GUI client and server connection always freezes
Posted by: Veritas_Vos_Liberabit24 - Mar-21-2023, 03:18 AM - Forum: General Coding Help - No Replies

So my python program is essentially an investment interface where the client displays the graphical elements like the first page is the login or signu..... More


Attached Files

.py   Client.py (Size: 13 KB / Downloads: 246)
.py   Server.py (Size: 5.61 KB / Downloads: 252)
Print this item

  is ValueError a class?
Posted by: Skaperen - Mar-20-2023, 05:40 PM - Forum: News and Discussions - Replies (11)

is ValueError a class? can a class be hashed? should a class be hashable? should the result of ValueError() be hashable?

one of the things i have..... More

Print this item

  Storing version of the downloaded libs using json file
Posted by: Rakshan - Mar-20-2023, 03:06 PM - Forum: Homework - Replies (3)

Hi, I am working on a requirement where I download packages from a repository using Python. To improvise the script further, we want to have a setup w..... More

Print this item

  Thumbnail picture won't show, and no error. why?
Posted by: Ragnar_Itachi - Mar-20-2023, 01:56 PM - Forum: GUI - Replies (1)

Thumbnail picture won't show, and also no error. why?
this is my full code.

[python]from tkinter import *
from PIL import Image, ImageTk
import..... More

Print this item

  <b> followed by <b> before closing</b>
Posted by: WJSwan - Mar-20-2023, 01:12 PM - Forum: General Coding Help - Replies (1)

I am trying to edit some HTML text in Python. I have an HTML file where there are sometimes a <b> tag (Bold) and before it is closed with a </b> there..... More

Print this item

  Add a row per group and depending of values
Posted by: Menthix - Mar-20-2023, 11:20 AM - Forum: General Coding Help - No Replies

Hello,
I have this dataframe (see capture 1).

And I 'd like to add one row per group of the Var_1 such as I have a new value Var_2=3. And the val..... More


Attached Files

Thumbnail(s)
       
Print this item

  Anti-sum drawers
Posted by: Paul_Maillet - Mar-19-2023, 09:08 PM - Forum: Homework - Replies (6)

Hello ! I need someone to quickly run a program that takes time...
I am French and I am in high school, I'm researching anti-sum drawers, i.e., drawe..... More

Print this item

  Non cryptographic hashes
Posted by: AndrzejB - Mar-19-2023, 08:38 PM - Forum: General Coding Help - Replies (3)

How to use fast but short, non cryptographic hashes - 32 and 64 bit?

Print this item

  XAMPP Configuration of Python
Posted by: lavanyadeepak - Mar-19-2023, 02:01 PM - Forum: Web Scraping & Web Development - Replies (1)

I am starting to explore Python. I have downloaded the latest version of Python. Installed the same for all users and have tested it too

[ou..... More

Print this item

  json decoding error
Posted by: deneme2 - Mar-19-2023, 12:54 PM - Forum: General Coding Help - Replies (10)

Hello my friends,
Wish you al have a restful sunday.
I want to use one json file in python with a following code.

[python]import json
import dat..... More

Print this item

  Tie Breaks
Posted by: klatlap - Mar-19-2023, 04:15 AM - Forum: General Coding Help - Replies (6)

Hi all, i use this code to rank a list, the problem is if there is a tie break it gives inaccurate info, how can i fix this so tie breaks will be base..... More

Print this item

  optimization
Posted by: Skaperen - Mar-18-2023, 11:03 PM - Forum: General Coding Help - No Replies

if i code this:

bar = 0
if foo is None:
    bar = 99
elif foo is True:
    bar = 99
print(bar)
vs coding this:
[python]
..... More

Print this item

  Confirm / Cancel button in Python & Flask
Posted by: ladak - Mar-18-2023, 11:26 AM - Forum: General Coding Help - No Replies

Hello everyone,

I am designing a ChatBot in which I need 2 buttons. confirm & cancel (See attached File).
Anyone can please help me how to..... More


Attached Files

Thumbnail(s)
   
Print this item

  Transposing a dataframe without creating NaN values
Posted by: doug2019 - Mar-17-2023, 08:45 PM - Forum: General Coding Help - Replies (2)

Hi! I have the data like this in a .csv file:
index data
1 10
2 20
3 30
4 40
5 50
6 ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 5 hours ago 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... 578689
  Tutorial Requ... 509155
  Web Scraping ... 441842
  Newbie with P... 385796
  New Users Int... 375079
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
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07
EchoFlowar3Dip 11-07

User Panel Messages

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