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,471
» Latest member: iloveimg3
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 692 online users.
» 0 Member(s) | 686 Guest(s)
Bing, Apple, Google, Baidu, Yandex

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 202
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 157
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,336
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 118
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 407
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,216
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 373
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 448
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 1,005
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 269

 
  How to express null value
Posted by: klatlap - Mar-25-2023, 03:43 AM - Forum: General Coding Help - Replies (3)

Hi, problem i have is i am downloading a json file and putting in a string, when i am getting data from the string at times there is some info that is..... More

Print this item

  conditions not working as expected
Posted by: mbrown009 - Mar-25-2023, 03:23 AM - Forum: Data Science - Replies (13)

I am pulling/wanting to pull in data from a pandas data frame to a straight variable so I can do pull it into a function so I do not duplicate code. W..... More

Print this item

  exe to .py
Posted by: KinkgOfKeks - Mar-24-2023, 08:16 PM - Forum: General Coding Help - Replies (2)

I have somehow deleted my python file without noticing it. It also isn't in the trasch bin. Al that I have left is a onefile .exe that I have created ..... More

Print this item

  can openpyxl read font colors
Posted by: mperemsky - Mar-24-2023, 04:50 PM - Forum: General Coding Help - Replies (3)

I have a task to remove duplicate entries from a column in a spreadsheet. I can loop through the spreadsheet using

[python] for i in range(..... More

Print this item

  highlight the columns and capture
Posted by: amy83 - Mar-24-2023, 03:59 PM - Forum: General Coding Help - No Replies

Hi Experts,
I have written a Python script (3.8) which is going to capture Oracle SQL query from .log file ( as per report .log files are going to ge..... More

Print this item

  Removing leading whitespaces
Posted by: palladium - Mar-24-2023, 12:56 PM - Forum: General Coding Help - Replies (1)

Hi all

I am trying to build a simple (semi) live dictation script with Whisper. As Whisper do not support commands out of the box (eg 'new paragrap..... More

Print this item

  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: 212)
.py   Server.py (Size: 5.61 KB / Downloads: 216)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 564808
  Tutorial Requ... 454252
  Web Scraping ... 429770
  Newbie with P... 365370
  Thread remain... 337723
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
iloveimg3 Yesterday
ishaD Yesterday
fitobar43 Yesterday
AymanNassar 05-16
Shailesh 05-15

User Panel Messages

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