Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,629
» Latest member: catherine
» Forum threads: 37,388
» Forum posts: 169,903

Full Statistics

Online Users
There are currently 349 online users.
» 1 Member(s) | 341 Guest(s)
Bing, Baidu, Facebook, Google, Yandex, Applebot, snippsat

Latest Threads
watchdog on_modified
Forum: General Coding Help
Last Post: CAD79
5 minutes ago
» Replies: 0
» Views: 1
TypeError: Diagram.render...
Forum: Code Review
Last Post: catherine
2 hours ago
» Replies: 1
» Views: 40
match case
Forum: Code sharing
Last Post: DeaD_EyE
3 hours ago
» Replies: 1
» Views: 74
Right way to open files w...
Forum: General Coding Help
Last Post: Gribouillis
4 hours ago
» Replies: 1
» Views: 57
Loop through all files in...
Forum: General Coding Help
Last Post: DeaD_EyE
4 hours ago
» Replies: 9
» Views: 181
Volume label
Forum: Bar
Last Post: DPaul
6 hours ago
» Replies: 1
» Views: 56
Understand Named Tuples
Forum: Tutorial Requests and Submissions
Last Post: main
Today, 12:23 AM
» Replies: 0
» Views: 52
dict.setdefault()
Forum: Code sharing
Last Post: main
Yesterday, 11:45 PM
» Replies: 0
» Views: 54
FutureWarning: The behavi...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 09:51 PM
» Replies: 12
» Views: 237
Add NER output to pandas ...
Forum: Data Science
Last Post: dg3000
Yesterday, 08:14 PM
» Replies: 0
» Views: 43

 
  [split] Parse Nested JSON String in Python
Posted by: mmm07 - Mar-28-2023, 10:37 AM - Forum: General Coding Help - Replies (4)

Hi! just saw this post and I think** it will help me with the same issue.. any chance you could help me? Thanks in advance!!

my amended..code..

..... More

Print this item

Question Doubt about conditionals in Python.
Posted by: Carmazum - Mar-28-2023, 08:00 AM - Forum: General Coding Help - Replies (6)

[align=justify]Greetings, Python community! python
I hope you are doing well. Smile

I recently started re-learning Python (I love it t..... More

Print this item

  Code freez if more inputs
Posted by: kiko058 - Mar-28-2023, 04:44 AM - Forum: General Coding Help - Replies (2)

Hello I found this code. The code should calculate how to divide given lengths into pieces with the smallest possible waste, based on the specified le..... More

Print this item

  Partial KEY search in dict
Posted by: klatlap - Mar-28-2023, 04:18 AM - Forum: General Coding Help - Replies (6)

Hi all, i am trying to do a partial search in a dict, everything i have tried needs the exact search term that will find the value if it contains the ..... More

Print this item

  How can I change with Python the underline colour in a PDF? [SOLVED]
Posted by: newbieAuggie2019 - Mar-28-2023, 02:20 AM - Forum: Bar - Replies (3)

Hello again, everybody!

I try to keep working on my better understanding and use of Python, at least, as much as my little free time allows me...
..... More

Print this item

  which exception should be raised if ...
Posted by: Skaperen - Mar-27-2023, 05:17 PM - Forum: News and Discussions - Replies (5)

which exception should be raised if a process being run produces output to a pipe normally connected to read its stdout and/or stderr wh..... More

Print this item

  Pandas question
Posted by: DPaul - Mar-27-2023, 03:32 PM - Forum: General Coding Help - Replies (3)

Hi,
I now have been handed a bunch of legacy excel files.
The author had the good idea to put two header rows, but both have column names i want.
S..... More

Print this item

  PysimpleGUI window update dynamically
Posted by: SamLiu - Mar-27-2023, 01:59 PM - Forum: GUI - Replies (6)

Hi all,
I made a tool checking IQR value in CSV, but I feel so stupid with my code, such as loading text control, and update value.
Can someone help..... More

Print this item

  Read csv file with inconsistent delimiter
Posted by: gracenz - Mar-27-2023, 12:07 PM - Forum: General Coding Help - Replies (2)

Hi everyone.

Can I seek your help on properly reading this csv file with incomplete data (e.g. row 14 to 23) and different delimiters?
row 23 has ..... More


Attached Files

.csv   testing.csv (Size: 5.94 KB / Downloads: 139)
Print this item

  PyQt5 QTableView SQLite : edit cell
Posted by: HeinKurz - Mar-27-2023, 09:45 AM - Forum: GUI - Replies (2)

Hi!
I'm newbie with PyQt5 and now I have an app for Windows with PyQt5 and a SQLite database. Showing the data in QTableView works fine, even with ce..... More

Print this item

  Compiles Python code with no error but giving out no output - what's wrong with it?
Posted by: pythonflea - Mar-27-2023, 04:02 AM - Forum: General Coding Help - Replies (6)

Am running Python 3.8.10 in a 32-bit Windows 7 computer with only 2GB memory and no video card (not even an NVIDIA) - it's a two decade old netbook........ More


Attached Files

Thumbnail(s)
   
Print this item

Question How to compare two parameters in a function that has *args?
Posted by: Milan - Mar-26-2023, 05:03 PM - Forum: General Coding Help - Replies (4)

Hello team,

I have the following function

[python]import string
import random

def check_input(*args):
length = args[0]
while lengt..... More

Print this item

  A simple python doubt
Posted by: mohamedrabeek - Mar-26-2023, 03:23 PM - Forum: General Coding Help - Replies (2)

In the following function,
[python]
def fibonaci():
first = 0
last = 1
while True:
first, last = last, first + last
..... More

Print this item

  error python audio
Posted by: codiac - Mar-26-2023, 10:01 AM - Forum: General Coding Help - Replies (3)

this is my code:
[python]import os
import pyaudio
import openai
import soundfile as sf
import numpy as np
import base64
from pydub import Audio..... More


Attached Files

.py   ai hog inc.py (Size: 2.49 KB / Downloads: 91)
Print this item

  find out ore python is good for me ?
Posted by: trix - Mar-26-2023, 09:07 AM - Forum: News and Discussions - Replies (2)

hello,

i am busy whit a big project. that i programmed in C. it is working for 70 % now.
first i used a 8-bit AVR but i stopped whit th..... More

Print this item

  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 16: invalid cont
Posted by: Melcu54 - Mar-26-2023, 07:41 AM - Forum: General Coding Help - Replies (3)

Hello. I have a lots of ANSI docx files. I made this Python code, and I got an error of codec:

[python]import re
import os
from pathlib import Pa..... More

Print this item

  Drawing a net of a cube
Posted by: freethrownucleus - Mar-25-2023, 02:14 PM - Forum: Game Development - Replies (26)

I need to draw a net of a cube. Each of squares of a cube will present a tic-tac-toe board.
I tried this but I can do nothing with it (making anything..... More

Print this item

  havent programmed in years - confused by why RETURN is not returning
Posted by: stmoose - Mar-25-2023, 05:35 AM - Forum: General Coding Help - Replies (5)

haven't programmed in years
thought i would try python, wrote a script that was failing
shorten the code to just the section that I think is giving ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  watchdog on_modified 5 minutes ago CAD79 CAD79 General Codin...
  TypeError: Diagram.render... 2 hours ago sachin1361 catherine Code Review
  match case 3 hours ago main DeaD_EyE Code sharing
  Right way to open files w... 4 hours ago Winfried Gribouillis General Codin...
  Loop through all files in... 4 hours ago Winfried DeaD_EyE General Codin...
  Volume label 6 hours ago DPaul DPaul Bar
  [Intermediate] Understand... Today, 00:23 main main Tutorial Requ...
  dict.setdefault() Yesterday, 23:45 main main Code sharing
  FutureWarning: The behavi... Yesterday, 21:51 sawtooth500 deanhystad General Codin...
  Add NER output to pandas ... Yesterday, 20:14 dg3000 dg3000 Data Science
  Made a discord bot game t... Yesterday, 14:27 Dmcsdiscord Dmcsdiscord General Codin...
Most views
  The best Prog... 407880
  Web Scraping ... 299333
  Tutorial Requ... 289996
  Newbie with P... 248698
  Thread remain... 230519
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11871
buran 8090
snippsat 7084
deanhystad 6211
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
catherine Today
Kamati Today
LauraTanner Today
main Yesterday
dg3000 Yesterday

User Panel Messages

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