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,394
» Latest member: braillescribe
» Forum threads: 38,822
» Forum posts: 176,025

Full Statistics

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

Latest Threads
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
3 hours ago
» Replies: 1
» Views: 4,568
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
3 hours ago
» Replies: 4
» Views: 122
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
5 hours ago
» Replies: 7
» Views: 3,576
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 135
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 273
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,092
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,936
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 166
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 99
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 170

 
  Controlling program with TCP commands
Posted by: lavacode - Jul-10-2023, 08:06 AM - Forum: General Coding Help - Replies (1)

Hi! I'm still quite new to Python, so apologies if I'm missing something really basic..

I have this code, which has speech recognition and then sen..... More

Print this item

  Webscrape from my webpage and store in database and send to grafana
Posted by: Armond - Jul-10-2023, 06:32 AM - Forum: General Coding Help - Replies (2)

Hi!

I want to webscrape a value from my webpage and send it to a database every 5 minutes and upload it to grafana.
I have done the webscrape pyth..... More

Print this item

  Howto do motion event on solely window and not the widgets on it?
Posted by: janeik - Jul-10-2023, 06:14 AM - Forum: General Coding Help - Replies (3)

I have a single window (root):
window = customtkinter.CTk() which holds several widges as (mapview,labels,combos....).

I use this function to get ..... More

Print this item

  ModuleNotFoundError: No module named 'eyed3'
Posted by: Wimpy_Wellington - Jul-09-2023, 07:50 PM - Forum: General Coding Help - Replies (3)

Sorry, I am new to Python...

I am trying to use eyed3 to update the tags on a number of mp3 files. I found eyed3 mentioned in some posts on the i..... More

Print this item

  How come my python shells are different?
Posted by: SuchUmami - Jul-09-2023, 05:15 PM - Forum: General Coding Help - Replies (2)

I'm using a shell on my desktop and I'm also using a shell on a remote desktop. They are different and I'm not able to work with the remote desktop la..... More

Print this item

  Code understanding: Need help in understanding dictionary code
Posted by: jt123 - Jul-09-2023, 01:13 PM - Forum: General Coding Help - No Replies

Below code is working fine to sum the price for each items. But I could not understand how values-Keys are filled in ordered dict - d.

[python]from..... More

Print this item

  What is the difference between Command Prompt and Sublimes
Posted by: yaoyao22 - Jul-09-2023, 11:35 AM - Forum: General Coding Help - Replies (1)

There are some Python codes which can only be run in Command Prompt, and can only be run in Sublimes? I am a new user of Python. But I am very familia..... More

Print this item

  What is the best way to merged csv files and commit them to a database?
Posted by: SuchUmami - Jul-09-2023, 07:47 AM - Forum: General Coding Help - Replies (2)

I have several csv files with different kinds of data on them. Currently I am making a dataframe for each one and then merging the dataframes. I also ..... More

Print this item

  How to fix this error: ModuleNotFoundError: No module named 'notears'
Posted by: yaoyao22 - Jul-09-2023, 07:43 AM - Forum: General Coding Help - Replies (2)

I want to run linear.py from the below website. But I always am stuck at line 90 of linear.py. How to fix the error? The linear.py code can be seen he..... More

Print this item

  math problem for experts
Posted by: miltmobley - Jul-08-2023, 08:24 PM - Forum: General Coding Help - Replies (5)

While testing python code to rotate 3d points, I tried:

cos_ = np.cos((90.0/360.0) * (2.0*np.pi))

cos(90) was reported as 6.123234e-17, inst..... More

Print this item

  [solved] What is the best/pytonic way to import with dependency ?
Posted by: SpongeB0B - Jul-08-2023, 07:46 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I would like to create a module (let's call it FooBar) that I could import in few of my "main" programs.

But the functions w..... More

Print this item

  subprocess for executing over CLI
Posted by: flash77 - Jul-08-2023, 05:05 PM - Forum: General Coding Help - Replies (5)

Hi,

this is my first attempt to execute something via CLI using python - I'm totally unexperienced with "subprocesses"...

I'm trying to execute ..... More

Print this item

  [WORKED AROUND] Problem installing elitech-datareader, 'cannot import build_py_2to3'
Posted by: NeilUK - Jul-08-2023, 04:14 PM - Forum: General Coding Help - Replies (4)

I am running python 3.8.10 in a virtual environment on Linux Mint 20.3. They are both pretty much on plain vanilla defaults, I tend not to muck around..... More

Print this item

  What's the best way for multiple modules to handle database activity?
Posted by: SuchUmami - Jul-08-2023, 12:09 PM - Forum: General Coding Help - Replies (3)

When I write to databases I am currently using locks so that other modules don't run into errors. I am new to programming and I was just wondering wha..... More

Print this item

  Elo rating
Posted by: smartangel - Jul-08-2023, 12:00 PM - Forum: General Coding Help - Replies (1)

i want to create in python a code to calculate the elo ratings of players, each row is a game, every game starts with 1500 points, and the game being ..... More

Print this item

  Trying to compare string values in an if statement
Posted by: israelsattleen - Jul-08-2023, 02:21 AM - Forum: General Coding Help - Replies (1)

I am doing a tutorial where i get some string data input

lbsOrKgs = input ("is it in lbs or kgs")

now after getting that input all i want to do ..... More

Print this item

  Coding Error
Posted by: EddieG - Jul-07-2023, 01:57 PM - Forum: General Coding Help - Replies (2)

I am copying the text on the textbook for pygame but it is coming out as error when i run the code.Pls see the attached photo.[attachment=2449]I am c..... More


Attached Files

Thumbnail(s)
   
Print this item

  Convert dataframe from str back to datafarme
Posted by: Creepy - Jul-07-2023, 01:05 PM - Forum: General Coding Help - Replies (1)

Hi,

Am looking for help where I converted a dataframe in order for replace function to work?
Now am looking for way to convert it back to datafame..... More

Print this item

  What is all the info in the info window in Idle?
Posted by: Pedroski55 - Jul-07-2023, 04:16 AM - Forum: General Coding Help - Replies (3)

I only use Python for practical purposes, to do little jobs. I never found a task where I thought I need a class.

Today I was just looking at a cla..... More

Print this item

  Convert File to Data URL
Posted by: michaelnicol - Jul-06-2023, 10:25 PM - Forum: General Coding Help - Replies (3)

I have a STL, OBJ, and other CAD files stored on my server.

How can I convert those to a data URL?

I found the following library: https://pypi.o..... More

Print this item

  Change HID bytes using pywinusb.hid
Posted by: Stealthrt - Jul-06-2023, 03:36 PM - Forum: General Coding Help - No Replies

Hey all I am new to the Python world and need some help.

I have an HID device that I am needing to replace 0x00 with 0x01 and I have ..... More

Print this item

  qpython package error
Posted by: Creepy - Jul-06-2023, 02:18 PM - Forum: General Coding Help - Replies (5)

Hi,

Could you help me resolve the issue with package?
Re-installed a number of times, but still the same issue.

When I run my code, I get the b..... More

Print this item

  Put the new line after regex pattern
Posted by: stahorse - Jul-06-2023, 02:06 PM - Forum: Data Science - Replies (5)

Hi,
I have this code:

[quote]text = """MyCo Please have a look at this building’s premium. It looks to be a very high rate. <img width="874" hei..... More

Print this item

  Findall() ReGex
Posted by: stahorse - Jul-06-2023, 08:17 AM - Forum: Data Science - Replies (2)

Hi,

I have this regex:

[quote]content = """encoding="UTF-8"\?>(.*?)^<\?xml version="1.0"

MYCO Please have a look at this building’s premium. ..... More

Print this item

  Peaks in time domain
Posted by: frohr - Jul-06-2023, 02:56 AM - Forum: General Coding Help - No Replies

Hey all,
I have code to generate signal with some peaks and make hilbert - enveloping. But I have some peaks at start in time domain after applying h..... More

Print this item

  read file txt on my pc to telegram bot api
Posted by: Tupa - Jul-06-2023, 01:52 AM - Forum: General Coding Help - No Replies

how to read a text file called file.log and send to a bot in telegram.
I have the latest version of python, python-telegram-bot

[python]
#!/usr/b..... More

Print this item

  Oversampling using G-smote
Posted by: ark - Jul-05-2023, 08:34 PM - Forum: Data Science - Replies (1)

What are the necessary libraries or packages need to work with Geometric smote? And what are the other techniques available to over sample datasets wi..... More

Print this item

  Installing Python 3.8.11 from TGZ File
Posted by: michaelnicol - Jul-05-2023, 06:56 PM - Forum: General Coding Help - Replies (2)

I am attempting to install Python 3.8.11 for Windows from a TGZ file since no installer is available on the Python website.

Here is the files it gi..... More

Print this item

  Why am I getting this TypeError Exception?
Posted by: Affinity - Jul-05-2023, 03:18 PM - Forum: General Coding Help - Replies (8)

Please see the attached photo. This is my first Python program. It runs fine and the code appears to be the same as the instructors. Yet VSCode is ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Apple II universe
Posted by: gridsleep - Jul-05-2023, 11:16 AM - Forum: News and Discussions - No Replies

I see several Apple II emulations written in Python or in progress. Is anyone working on an implementation of Python for Apple II, as opposed to of Ap..... More

Print this item

  Equivalent Python code from VBA
Posted by: Mishal0488 - Jul-05-2023, 08:43 AM - Forum: General Coding Help - Replies (4)

Hi Guys

Refer to the below code which is developed on Excel VBA, the code essentially opens Space Gass and passes the text to the Space Gass.
What..... More

Print this item

  Regular Expression
Posted by: stahorse - Jul-05-2023, 06:28 AM - Forum: Data Science - Replies (9)

Hi,

I have this code below:

Import re

[quote]text = """
ATT Please have a look at this building’s premium. It looks to be a very high rate...... More

Print this item

  importing serial
Posted by: Fklein23 - Jul-05-2023, 04:33 AM - Forum: General Coding Help - Replies (2)

I have a Python project I have been developing on Windows. (I wish I could use Linux for this project, because I would already be done)
My project ha..... More

Print this item

  Convert np Array A to networkx G
Posted by: IanAnderson - Jul-05-2023, 02:34 AM - Forum: General Coding Help - Replies (2)

Hi,

I am trying to convert the np array A to networkx G. I have the code "G = nx.from_numpy_array(A)" but I don't know if I need to do anything els..... More

Print this item

  Python debuggers
Posted by: jehoshua - Jul-04-2023, 10:51 PM - Forum: General Coding Help - Replies (8)

What do you use ? There is the command line pdb at https://docs.python.org/3/library/pdb.html

Then three GUI ones mentioned at https://stac..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Struggles I Faced While E... 3 hours ago baffa_dbt padma121 Code Review
  Willing to pay for help w... 3 hours ago braillescribe noisefloor General Codin...
  Create dataframe from the... 5 hours ago 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...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
Most views
  The best Prog... 580400
  Tutorial Requ... 519383
  Web Scraping ... 442776
  Newbie with P... 386976
  New Users Int... 386434
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
braillescribe Yesterday
aurelio12282025 Yesterday
bejaminmaarleyo1374 Yesterday
taylorlitleoz476 Yesterday
desy845 Yesterday

User Panel Messages

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