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,244
» Latest member: thebigback
» Forum threads: 38,778
» Forum posts: 175,804

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 36 Guest(s)
Bing, Google, AOL, Mojeek

Latest Threads
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
2 hours ago
» Replies: 2
» Views: 34
Backward compatibility qu...
Forum: News and Discussions
Last Post: yutaozhou
3 hours ago
» Replies: 4
» Views: 162
I’m building a Python Dat...
Forum: GUI
Last Post: Gribouillis
5 hours ago
» Replies: 6
» Views: 163
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 70
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,584
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 157
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 151
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,504
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,392
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,589

 
  Need an alternative to brute force optimization loop
Posted by: jmbonni - Nov-29-2023, 11:32 PM - Forum: General Coding Help - Replies (5)

Hello,
I have a function with 3 intricated loops to get the best parameters from about 16000000 combinations. This takes a lot of time.
I am looking..... More

Print this item

  need to compare 2 values in a nested dictionary
Posted by: jss - Nov-29-2023, 08:30 PM - Forum: General Coding Help - Replies (2)

i have a nested dictionary like below
[python]

from nested_lookup import nested_lookup

sample_dict = {
"data": {
"systemdata": [..... More

Print this item

  Need help with a code.
Posted by: HanzoSW - Nov-29-2023, 06:35 PM - Forum: General Coding Help - Replies (5)

I cant rally code, just use chat gbt to write it for me and it gave me almost a working code. What it does it take a .csv file and expands the columns..... More

Print this item

  use of shutil.copytree with ENOTDIR exception
Posted by: yan - Nov-29-2023, 09:46 AM - Forum: General Coding Help - Replies (2)

Hello,

First thank you to help people !

I would like to make a script to copy an entire tree for testing (folder, sub-folders, files).
I need a..... More

Print this item

  What script to paste folders
Posted by: thenewcoder - Nov-29-2023, 07:50 AM - Forum: General Coding Help - Replies (1)

Hello,

I'm new with python.
For my work i have to handle many files and folders.

I'm looking for a script which can copy a subfolder and past i..... More

Print this item

  Trying to scrape data from HTML with no identifiers
Posted by: pythonpaul32 - Nov-29-2023, 04:28 AM - Forum: Web Scraping & Web Development - Replies (2)

I am using selenium and beautifulsoup and trying to scrape data from an html structure like this

[output]<h2>Education</h2>
Entry1
<br>
Entry2
..... More

Print this item

  Copying the order of another list with identical values
Posted by: gohanhango - Nov-29-2023, 12:52 AM - Forum: General Coding Help - Replies (7)

I have a list containing a lot of serial numbers. Here are some of them:

hub_sn = [10001, 10002, 10003, 10004, 10005]

These serial numbers came ..... More

Print this item

  working directory if using windows path-variable
Posted by: chitarup - Nov-28-2023, 09:54 PM - Forum: General Coding Help - Replies (2)

Hello,

if have a Python-script in, let's say

d:\script\myScript.py

I add this to the windows path variable:

`PATH="...;d:\script;..... More

Print this item

  How is pandas modifying all rows in an assignment - python-newbie question
Posted by: markm74 - Nov-28-2023, 07:08 PM - Forum: General Coding Help - Replies (1)

Hi all,

This may be a data science question or just a Python newbie question, but I'm trying to fundamentally understand how pandas modifies all re..... More

Print this item

  Loop over an an array of array
Posted by: Chendipeter - Nov-28-2023, 03:50 PM - Forum: General Coding Help - Replies (1)

I have an array of arrays I want to loop over to return two arrays called hills and valleys. When looping through each element, we check the item at i..... More

Print this item

  Detecting Buttons - Suggestions?
Posted by: RockBlok - Nov-28-2023, 11:24 AM - Forum: GUI - Replies (3)

Good morning,

I'm looking for some advice on tutorials and self study. I'm working on automating some of my workflow because I use a lot of differe..... More

Print this item

  I want to create one resume parser api using Python Flask
Posted by: parthsukhadiya - Nov-28-2023, 09:05 AM - Forum: General Coding Help - Replies (1)

i want to create the resume parser for that i have usme many tool fort that like pyap,fitz,tempfile,spacyand etc like user hitting the our api..... More


Attached Files

.py   app.py (Size: 14.89 KB / Downloads: 255)
.py   app1.py (Size: 2.21 KB / Downloads: 223)
Print this item

  tic tac toe python minimax alpha beta
Posted by: FSNWRMH - Nov-28-2023, 08:08 AM - Forum: Homework - Replies (6)

Hi everyone I have this python code which works but is not optimal . Its a tic tac toe using minimax and alpha beta pruning .the computer is not selec..... More

Print this item

  numbers with decimals
Posted by: DPaul - Nov-28-2023, 07:45 AM - Forum: Bar - Replies (6)

Hi,
I'm embarrassed, a member already answered this question, some time ago,
I can't find the reply any more. Blush .
I wrote a program for a frie..... More

Print this item

  How to execute tempo changes in Mido?
Posted by: NickShredScott - Nov-28-2023, 05:16 AM - Forum: General Coding Help - No Replies

I'm attempting to create a simple Python script using Mido to execute the writing of a midi file that has tempo changes embedded. Right now I think I'..... More

Print this item

  How to remove some elements from an array in python?
Posted by: gohanhango - Nov-27-2023, 11:42 PM - Forum: General Coding Help - Replies (9)

I have a sorted list of integers that has about 4000 elements. I'm trying to remove every element that is above 550. I used remove() function for the ..... More

Print this item

  Python code review | Tkinter gui application
Posted by: Sr999 - Nov-27-2023, 11:05 PM - Forum: Code Review - Replies (19)

Hey, i am learning python for like 12-14days and i have finished my first complete gui project using tkinter because i am self learner i have no place..... More

Print this item

  troubles with tqdm
Posted by: max22 - Nov-27-2023, 08:01 PM - Forum: General Coding Help - Replies (2)

I have a problem with tqdm progress bar. I have a code like this my code with wrongly working tqdm
If I ha..... More


Attached Files

Thumbnail(s)
   
Print this item

  how to avoid deprecation notice
Posted by: merrittr - Nov-27-2023, 05:34 PM - Forum: General Coding Help - Replies (5)

Just wondering if there is a switch to stop a deprecation notice like the one below?


(env) [root@RHEL8-20230921 pyeztest]# ./jnprtest.py
/home/s..... More

Print this item

  Error with output
Posted by: djprasanna - Nov-27-2023, 02:25 PM - Forum: General Coding Help - Replies (1)

I have the following code, throwing the error: can some help out with the executable code for the same
[python]
import numpy as np
import matplotli..... More

Print this item

  [split] Why is there an output of None
Posted by: akbarza - Nov-27-2023, 10:53 AM - Forum: General Coding Help - Replies (1)

hi
I have a small question, but I did not know if i must open a new thread for it or not, so I ask here:
in the below code :
[python]class Request..... More

Print this item

  random numbers, randint
Posted by: janeik - Nov-27-2023, 12:46 AM - Forum: General Coding Help - Replies (2)

hello.
I got what I want in excel but it fades away so I thought I shoul try Python to do following:
Read 4 random numbers one by one, into a b c ..... More

Print this item

  pip stops waiting for python
Posted by: walker - Nov-26-2023, 06:11 PM - Forum: General Coding Help - Replies (6)

Hello everyone,

My name is Ignazio and I have just joined the forum, I am a retired computer scientist and I have worked mainly on Unix systems pro..... More


Attached Files

Thumbnail(s)
   
Print this item

  Potential Pitfalls of Over-Reliance on SQLAlchemy
Posted by: codingismycraft - Nov-26-2023, 04:16 AM - Forum: News and Discussions - No Replies

Using SQLAlchemy, a widely-used SQL toolkit and Object-Relational Mapping (ORM) system in Python, may not always be the best choice for all scenarios...... More

Print this item

  Can't Find Python (or Something)
Posted by: pklind - Nov-26-2023, 02:23 AM - Forum: General Coding Help - Replies (2)

I've been trying to use Python for several days without success. So I am seeking support.

I am running MacOS Sonoma 14.1.1 on a new MacBook. I inst..... More

Print this item

Question Rsa Cipher
Posted by: Paragoon2 - Nov-26-2023, 12:41 AM - Forum: General Coding Help - Replies (3)

I need help modifying the code to work for size 10, block_size=10. For size 8, block_size=8 works correctly if I have block_size=8
I tried to chang..... More

Print this item

  Why is 2/3 not just .666 repeating?
Posted by: DocFro - Nov-25-2023, 10:09 PM - Forum: General Coding Help - Replies (4)

Hey I'm learning python now and was just learning formatting in my online class. When I ran the following code I got the following output. I thought 2..... More

Print this item

  error occuring in definition a class
Posted by: akbarza - Nov-25-2023, 08:04 AM - Forum: General Coding Help - Replies (3)

hi
the below code is in :https://python.coderz.ir/lessons/l17-[url=https://python-forum.io/thread-41190.html]..... More

Print this item

  module either imported by a command or itself run as a command
Posted by: Skaperen - Nov-24-2023, 11:55 PM - Forum: News and Discussions - Replies (2)

i have a module that sometimes i want to run as a command. the problem is that the script that is importing it could be used as a command. thus, the..... More

Print this item

  Comparing Dataframe to String?
Posted by: RockBlok - Nov-24-2023, 04:45 PM - Forum: General Coding Help - Replies (2)

I'm trying to learn how to use Pandas to manipulate csv's and excel files.

One thing I'm trying to do is read a list of colors from a csv list, the..... More

Print this item

Bug TypeError: 'NoneType' object is not subscriptable
Posted by: TheLummen - Nov-24-2023, 02:47 PM - Forum: General Coding Help - Replies (4)

[python]import re

def rearrange_name(name):
result = re.search(r"^([\w .]*), ([\w .])$", name)
return "{} {}".format(result[2], result[1]..... More

Print this item

  RSA Cipher with blocks
Posted by: Paragoon2 - Nov-24-2023, 01:38 PM - Forum: General Coding Help - No Replies

Hi, I really need help. I need to create encryption using block access after 10 characters and with lower_limit = 10 ** 11 and upper_limit = 10 ** 12,..... More

Print this item

  Quarantine
Posted by: DPaul - Nov-24-2023, 08:13 AM - Forum: Board - Replies (1)

Hi Board,
In Homework, there is a discussion about clustering.
Topic Starter has not provided code, so we're not supposed to post any either.
Now I..... More

Print this item

  Best framework for MySQL interaction and Tensorflow / TFLite inference?
Posted by: f_set89 - Nov-23-2023, 04:14 PM - Forum: Web Scraping & Web Development - No Replies

I want to build a web-based application that a few people would use to process images and test Tensorflow / Tensorflow Lite models. The backend will b..... More

Print this item

  Variable is not defined error when trying to use my custom function code
Posted by: fnafgamer239 - Nov-23-2023, 08:32 AM - Forum: General Coding Help - Replies (4)

Hi so I recently am transitioning from Snap! to python and im trying to recreate something I did in snap but I am having some problems.

[python]# C..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Help with Serial.write in... 2 hours ago racingsubby racingsubby General Codin...
  Backward compatibility qu... 3 hours ago yutaozhou yutaozhou News and Disc...
  [Tkinter] I’m building a ... 5 hours ago tsgiannis Gribouillis GUI
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [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...
Most views
  The best Prog... 578749
  Tutorial Requ... 509551
  Web Scraping ... 441881
  Newbie with P... 385853
  New Users Int... 375504
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+ 12103
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
thebigback Yesterday
dimitriwati Yesterday
johnsonlucas83 Yesterday
ColorTig Yesterday
AcoolPurpleOne1863 Yesterday

User Panel Messages

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