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,397
» Latest member: atlerpitto4955
» Forum threads: 38,824
» Forum posts: 176,028

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 43 Guest(s)
Bing, Internet Archive, Google, AOL

Latest Threads
Merge video with subtitle...
Forum: General Coding Help
Last Post: Biks
40 minutes ago
» Replies: 27
» Views: 15,499
Shield Of Sparrows Epub D...
Forum: General Coding Help
Last Post: atlerpitto4955
44 minutes ago
» Replies: 0
» Views: 11
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:11 AM
» Replies: 1
» Views: 122
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,602
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 199
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,615
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 170
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 324
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,126
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,984

 
Lightbulb Brute Force method for solving equation - help needed
Posted by: MariuszDyrkacz - Feb-27-2024, 01:32 PM - Forum: News and Discussions - Replies (2)

Hello,

Could anybody check if is possible to solve below equations by Brute Force method using Phyton? Unfortunately standard arithmetic or determi..... More

Print this item

  Need help opening pages when web scraping
Posted by: templeowls - Feb-26-2024, 08:16 PM - Forum: Web Scraping & Web Development - Replies (1)

I have the below code which scrapes this page: https://www.eeoc.gov/newsroom/search.

It works well but I also want it to open each url and scrape t..... More

Print this item

  Fred Economic Data API
Posted by: warrior42 - Feb-26-2024, 06:03 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I was hoping to get a hand in setting up the Fred Economic Data API. I'm relatively new at using Python so I will need a basic understandin..... More


Attached Files

Thumbnail(s)
       
Print this item

Question [SOLVED] Correct way to convert file from cp-1252 to utf-8?
Posted by: Winfried - Feb-26-2024, 02:28 PM - Forum: General Coding Help - Replies (8)

Hello,

In a directory, I have a bunch of HTML files that were written in cp-1252 (ie. Latin1) that I need to convert to utf-8.

The following doe..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Merge video with subtitle... 40 minutes ago Pavel_47 Biks General Codin...
  Shield Of Sparrows Epub D... 44 minutes ago atlerpitto4955 atlerpitto4955 General Codin...
  Opencv findContours Q Yesterday, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
Most views
  The best Prog... 580443
  Tutorial Requ... 519759
  Web Scraping ... 442789
  Newbie with P... 386996
  New Users Int... 386655
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
atlerpitto4955 Today
aellatsz9602 Yesterday
cruisesfares Yesterday
azam Yesterday
zcharlesoogleto9533 Yesterday

User Panel Messages

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