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,926
» Latest member: compuman145
» Forum threads: 38,719
» Forum posts: 175,491

Full Statistics

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

Latest Threads
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
10 hours ago
» Replies: 6
» Views: 807
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 03:32 PM
» Replies: 2
» Views: 506
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Yesterday, 11:25 AM
» Replies: 7
» Views: 1,793
Python Installation issue
Forum: News and Discussions
Last Post: Dev
Yesterday, 11:16 AM
» Replies: 4
» Views: 15,716
New to the field
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 08:15 AM
» Replies: 1
» Views: 409
Too much space between gr...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:34 AM
» Replies: 1
» Views: 478
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Sep-13-2025, 06:11 AM
» Replies: 5
» Views: 1,548
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Sep-12-2025, 03:23 PM
» Replies: 4
» Views: 2,495
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 1,231
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,439

 
  Organization of project directories
Posted by: wotoko - Feb-26-2024, 02:03 PM - Forum: General Coding Help - Replies (3)

Hi everyone! How do you organize your code? I like to separate everything into directories, preferably in the form of a monorepo. Custom libraries, se..... More

Print this item

  Explanation of code
Posted by: ejKDE - Feb-26-2024, 10:16 AM - Forum: General Coding Help - Replies (4)

Here's an example of the code. I'd like to know what ctx is here. It's not passed anywhere to a function and i can't use get('formats')[::-1] w..... More

Print this item

  Scratch pad for writing forum threads / posts with markdown/markup
Posted by: Drone4four - Feb-25-2024, 07:32 PM - Forum: Bar - Replies (3)

What do you people use for drafting long forum threads / posts / Stack Overflow questions?

For years I’ve been using Google Docs which I realize is..... More

Print this item

  problem in using unittest
Posted by: akbarza - Feb-25-2024, 11:54 AM - Forum: General Coding Help - Replies (2)

hi
I have the two below codes:
[python]#one.py
def add(x,y):
return x+y

def subtract(x,y) :
return x-y

def multiply(x,y):..... More

Print this item

  Python trivial endgame engine is not working as expected
Posted by: max22 - Feb-24-2024, 04:41 PM - Forum: General Coding Help - No Replies

I have detected where roughly is a problem. It is in this function which gets processed for node "1" only, see the output section below: (I'm trying t..... More

Print this item

  Operation result class
Posted by: SirDonkey - Feb-24-2024, 04:14 PM - Forum: General Coding Help - Replies (6)

Hi,
I am pretty new to python and did some kind of return class which returns an outcome, user message and data when i call a method. I wonder if that..... More

Print this item

  fast MCTS in Python
Posted by: SteepeH - Feb-23-2024, 05:56 PM - Forum: General Coding Help - Replies (1)

Please recommend a fast and efficient implementation of Monte Carlo Tree Search (Python library or github project) for board games. What I found was s..... More

Print this item

  Decorators @ annotation
Posted by: drcl - Feb-23-2024, 04:25 PM - Forum: General Coding Help - Replies (3)

I'm not new to coding but new to Python. Decided to go through the CS50P course to get up to speed. Early on decorators were introduced which I thou..... More

Print this item

  Excel from SAP - dealing with formats and VBA
Posted by: MasterOfDestr - Feb-23-2024, 08:56 AM - Forum: General Coding Help - Replies (7)

Hello,

I'm working on automatizing one report using Python.
In general I have around 20 excel files (.xlsx and .xlms) that I filter base on some c..... More

Print this item

  Updating formulas in Excel - best solution
Posted by: MasterOfDestr - Feb-23-2024, 08:53 AM - Forum: General Coding Help - Replies (4)

Hello,

I'm working on automatizing one report using Python.
In general I have around 20 excel files (.xlsx and .xlms) that I filter base on some c..... More

Print this item

  Strategy for data extraction
Posted by: standenman - Feb-22-2024, 10:32 PM - Forum: Data Science - Replies (1)

I am trying to come up with a strategy for extracting key data from generic letters for different clients. This is the format of the letter I want to..... More


Attached Files

.pdf   MedRequestTemplate_Redacted-min.pdf (Size: 176.14 KB / Downloads: 5)
Print this item

  Showing windows after one another
Posted by: Ben123 - Feb-22-2024, 05:52 PM - Forum: GUI - Replies (4)

[python]import tkinter as tk
from PIL import Image, ImageTk

class Class1():

def __init__(self) -> None:
self.root = tk.Tk()
..... More

Print this item

  Column Transformer with Mixed Types - sklearn
Posted by: aaldb - Feb-22-2024, 03:27 PM - Forum: Data Science - No Replies

Dear community,

Im seeking your help for my data science thesis project. Im looking for scikit learn experts who can help me answer the following q..... More

Print this item

  LDA Model prepare() method failure in Python
Posted by: noerkes - Feb-22-2024, 01:42 PM - Forum: Data Science - No Replies

I'm trying to utilize the pyLDAvis Python package in Spyder, and while the LdaModel() function appears to work correctly, when I enable_notebook() and..... More

Print this item

  Selecting correct xlrd version
Posted by: Kithsiri - Feb-22-2024, 12:05 PM - Forum: General Coding Help - Replies (4)

Our system is using Python 2 and xlrd 0.8 version. We are planning to upgrade to Python 3.
Then looking at xlrd 0.8 version, it is very much depende..... More

Print this item

  Help!!
Posted by: prem_koresh_avraham - Feb-22-2024, 11:05 AM - Forum: General Coding Help - Replies (2)

[python]def hint_username(username):
if len(username) < 3:
print("Invalid username. Usernames must have more than 3 characters")
el..... More

Print this item

  Combine console script + GUI (tkinter)
Posted by: dejot - Feb-21-2024, 07:56 PM - Forum: General Coding Help - Replies (2)

Hello,
I have two python scripts. First is quickstart.py ans second is dater.py. My goal is to run first script and then inside call se..... More

Print this item

  Unable to download TLS Report attachment
Posted by: blason16 - Feb-21-2024, 05:48 PM - Forum: General Coding Help - Replies (6)

Hi Team,

I am trying to write a code which would download the TLS Report messages and then extract messages, unzip it and store it in file. Since I..... More

Print this item

  string to float conversion fails
Posted by: PetarPetrenko - Feb-21-2024, 04:56 PM - Forum: Homework - Replies (10)

Python version: 3.12
Windows 10, x64

This the problematic raw:

---------------------------------------------------------------
a = float(inpu..... More

Print this item

Question [Faircom CTree] Access from Python?
Posted by: Winfried - Feb-21-2024, 03:28 PM - Forum: Data Science - Replies (2)

Hello,

There's a long dead application — development stopped in the late 90's — that used Faircom's CTree database engine (the DLL says: Company=Fair..... More

Print this item

  Using OpenCV and image path is invalid
Posted by: AudunNilsen - Feb-21-2024, 11:15 AM - Forum: General Coding Help - Replies (5)

Trying to retrieve data from images using four modules.

This is the error message:
[error]>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call..... More

Print this item

  Horizontal extension of widgets + frame size adapted to content
Posted by: Fab117 - Feb-21-2024, 10:54 AM - Forum: GUI - Replies (3)

Hi,
I'm really beginner with TKinter/Python. I followed a TKinter training and I'm now trying to develop my 1st application.
I'm facing 2 challenges..... More

Print this item

  Simple linear regression with interaction summary table
Posted by: Andrzej_Andrzej - Feb-21-2024, 07:44 AM - Forum: Data Science - No Replies

Hi,
I would be very grateful for help because I was not able to figure it out in R.
So if R can't do it maybe Python can?
Here are two questions h..... More

Print this item

Bug p[0] mysteriouly set to 0
Posted by: pnachtwey - Feb-21-2024, 03:39 AM - Forum: General Coding Help - Replies (2)

[code]
import numpy as np

alpha = 0.1
h=0.000001
ftol = 1e-12

def f(p):
_sum = 0 # simple sum of x and y squa..... More

Print this item

  cutomtkinter matplotlib no x,y - xaxis and x,y - labels-> only graph and grid visible
Posted by: dduric - Feb-20-2024, 07:09 PM - Forum: GUI - No Replies

I am trying to create a virtual signal-generator(function-generator) - GUI with the cutomtkinter, matplotlib libs. The graph should be updated after a..... More


Attached Files

Thumbnail(s)
   
Print this item

  J'ai un "Failed: DID NOT RAISE <class 'Exception'>"
Posted by: williamKrakos - Feb-20-2024, 02:21 PM - Forum: Data Science - No Replies

code test.py:
[python]import pytest

#################### PHASE 1 ####################

def test_imports():
from pixel import Pixel
fro..... More

Print this item

Question How to add Python folder in Windows Registry ?
Posted by: Touktouk - Feb-20-2024, 09:09 AM - Forum: General Coding Help - Replies (1)

While trying to uninstall python to solve some errors, I have deleted that folder in the Windows Registery (and all the subfolder as well then): HKEY_..... More

Print this item

  I have 'Failed: DID NOT RAISE <class 'Exception'>'
Posted by: williamKrakos - Feb-19-2024, 11:55 PM - Forum: Homework - Replies (3)

code test.py:
[python]import pytest

#################### PHASE 1 ####################

def test_imports():
from pixel import Pixel
from image..... More

Print this item

  Puzzling import issue that I have no idea how to solvr
Posted by: starseeker - Feb-19-2024, 09:50 PM - Forum: General Coding Help - Replies (3)

I'm building an API with django ninja, for design reasons I'm using some logic inside microservice/logic/one_module.py that needs to get JSON data fro..... More

Print this item

Star Pairs Trading Simulation
Posted by: Kiitoos - Feb-19-2024, 08:27 PM - Forum: General Coding Help - Replies (2)

Hello, I am a student in finance and I have a project to do about pairs trading strategy. The fact is that my program works but gives me outputs that ..... More

Print this item

  Transform a list
Posted by: standenman - Feb-19-2024, 07:28 PM - Forum: Data Science - Replies (2)

I have a list of the bookmarks in pdf that I wish to transform. The list prints out in the form:

[[python][2, 'Medical Evidence of Record (MER) ..... More

Print this item

  recording textbox data into a variable
Posted by: paul18fr - Feb-19-2024, 06:13 PM - Forum: GUI - Replies (4)

Hi

This is my very (very) first test to code a GUI and I know it'll be a very (very) long way Wink .

In the following example, printing textbox..... More

Print this item

  Need to upgrade this code.
Posted by: valentino1337 - Feb-19-2024, 04:08 PM - Forum: Homework - Replies (2)

Hey everyone. For my project i need to extract single characters from a given string which are separated from each other by the increasing number of p..... More

Print this item

  Help with extracting characters from string
Posted by: valentino1337 - Feb-19-2024, 09:58 AM - Forum: Homework - Replies (2)

For our project we need to extract single characters from a given string which are separated from each other by the increasing number of places. Each ..... More

Print this item

  Export Utility for Inventor
Posted by: cthull12 - Feb-18-2024, 04:58 PM - Forum: Code Review - No Replies

I am trying to create a utility for my position that will allow the user to input a list of parts that need exported to DXF files from Inventor, then ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Select Python comment (#)... 10 hours ago SpongeB0B Pedroski55 General Codin...
  data input while debuggin... Yesterday, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame Yesterday, 11:25 JMcM JMcM Game Developm...
  Python Installation issue Yesterday, 11:16 RFHill Dev News and Disc...
  New to the field Yesterday, 08:15 Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... Yesterday, 02:34 RonR deanhystad GUI
  I'm trying to make a piec... 09-13, 06:11 Alislugacool MilesWeb General Codin...
  Seeking feedback: dynamic... 09-12, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575651
  Tutorial Requ... 496752
  Web Scraping ... 439708
  Newbie with P... 383345
  New Users Int... 364617
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 7366
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
compuman145 Today
DeadEyes Today
Fobertsmene Yesterday
jeremyn24503 Yesterday
homataheri Yesterday

User Panel Messages

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