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,931
» Latest member: Lenowell
» Forum threads: 38,720
» Forum posts: 175,500

Full Statistics

Online Users
There are currently 55 online users.
» 1 Member(s) | 45 Guest(s)
Google, Bing, AOL, Applebot, Twitter, Pedroski55

Latest Threads
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
2 hours ago
» Replies: 1
» Views: 339
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,337
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,459
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 282
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 91
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,806
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,055
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 746
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-14-2025, 11:25 AM
» Replies: 7
» Views: 2,108
Python Installation issue
Forum: News and Discussions
Last Post: Dev
Sep-14-2025, 11:16 AM
» Replies: 4
» Views: 15,976

 
  Reading a file
Posted by: JonWayn - Dec-30-2022, 08:35 AM - Forum: General Coding Help - Replies (3)

I have got a simple file read code and I need to understand why it works the way it does.

[python]
def ReadFileContents(file_path):
try:
..... More

Print this item

  Add data to CSV file via Python
Posted by: Anaconda23 - Dec-30-2022, 02:31 AM - Forum: Data Science - No Replies

Hi there, I'm quite new in this field and I was wondering about the following issues:

I have a dataset to work with for a Machine Learning project...... More

Print this item

  How do I add comments from a text-file to an array of folders?
Posted by: clausneergaard - Dec-29-2022, 10:41 PM - Forum: General Coding Help - Replies (2)

Hello everyone -

I was just wondering, as I’ve ventured out on bit of a limp here, if anyone have any experience with automating the process of cre..... More

Print this item

  'networkx' Questions
Posted by: Trader - Dec-29-2022, 10:20 PM - Forum: General Coding Help - No Replies

How can I draw a network with a degree center 2 using Networkx?

How can I find the centralities of betweenness, proximity, self-worth for each node..... More

Print this item

  Error "list indices must be integers or slices, not str"
Posted by: dee - Dec-29-2022, 09:38 PM - Forum: General Coding Help - Replies (2)

I want to format Excel column to percent. The following code gave me "list indices must be integers or slices, not str" error. The __class__ of Column..... More


Attached Files

Thumbnail(s)
   
Print this item

  color code doesn't work
Posted by: harryvl - Dec-29-2022, 08:48 PM - Forum: General Coding Help - Replies (1)

I made a script in for printing colored numbers.
The output works fine in spyder.
We i run the script from my anaconda prompt it doesn't work.
Then..... More

Print this item

  Illegal instruction (core dumped) when import pandas.
Posted by: amandacstr - Dec-29-2022, 08:04 PM - Forum: General Coding Help - Replies (1)

Hello!
I have Python 3.10.6 installed in my system (Lubuntu 22.04). I installed pandas and pyarrow with "pip3 install" command but when I try to impo..... More

Print this item

Exclamation pong paddles wont move
Posted by: skullkat232 - Dec-29-2022, 07:42 PM - Forum: Game Development - Replies (5)

help pls! i am having trouble with the pong paddles and there are no visible errors in my code, pLeASe hELPA mE :((((

Here's my code:

[python]..... More

Print this item

  Loop to find the best combination/score
Posted by: KoinKoin - Dec-29-2022, 05:45 PM - Forum: Homework - Replies (21)

Hello everyone,

I need your help because I can't a good solution of my problem
I have a dataframe, with name of some NBA players, average number a..... More


Attached Files

Thumbnail(s)
   
Print this item

  Using CPUs and Cores
Posted by: Robots - Dec-29-2022, 05:17 PM - Forum: News and Discussions - No Replies

In my computers I am running multi-core or multipule CPUs, how can I get Python to use a specific CPU, core or set of either?

Print this item

  trying to stream data from a websocket to client
Posted by: tomtom - Dec-29-2022, 04:29 PM - Forum: Networking - Replies (2)

My mission is to create a websocket server that send signal to any client connected to the websocket, the signal should be sent only when they is a sp..... More

Print this item

  Convert Python code to MATLAB code
Posted by: bitoded - Dec-29-2022, 01:53 PM - Forum: News and Discussions - Replies (4)

How can I convert Python code to MATLAB code?

Print this item

  Module Not Found Error
Posted by: bitoded - Dec-29-2022, 01:48 PM - Forum: General Coding Help - Replies (4)

I tried to fix the error below but doesn't work.

Error:
ModuleNotFoundError: No module named 'numpy'
Share me your idea to fix the probl..... More

Print this item

  user input values into list of lists
Posted by: tauros73 - Dec-29-2022, 11:13 AM - Forum: General Coding Help - Replies (3)

I have the following code :

[python]import itertools
from functools import reduce
CountOfCombination= 0
for i in itertools.product((1,2),(1,2,0..... More

Print this item

  PDF readers
Posted by: DPaul - Dec-29-2022, 06:50 AM - Forum: Bar - Replies (10)

Hi,
In the realm of genealogy, people have often turned their life's work into a pdf.
It usually can be read using pdfplumber and sometimes pdfminer.
..... More

Print this item

  Priority Queue with update functionality
Posted by: PythonNewbee - Dec-29-2022, 05:09 AM - Forum: General Coding Help - Replies (4)

I'm trying to implement a priority queue which allows me to update details of items already in queue.
I found a simple implementation in the Python d..... More

Print this item

Bug Works In Pycharm, Tons of problems after EXE
Posted by: chob_thomas - Dec-29-2022, 04:12 AM - Forum: General Coding Help - Replies (3)

Im using two .py files to accomplish the task of converting pdfs to tables then saving them into an excel sheet.
Everything works as it should when r..... More

Print this item

Question How to print directory files (& timestamps)
Posted by: chatguy - Dec-29-2022, 12:08 AM - Forum: Homework - Replies (3)

Please pardon my simple question (Unfortunately Google searches haven't been much luck)

With Python, how do I print all files in a directory where:..... More

Print this item

Question Best Python course (internet or better software) for a unknowing. If possible German.
Posted by: Tobias_Claren - Dec-28-2022, 08:31 PM - Forum: News and Discussions - Replies (3)

Hello.

I hope this fits best in this forum, and not in "Tutorials".

I am looking for the best learning material for Python.
Gladly interactive...... More

Print this item

  Loop Video with OMXPlayer and omxplayer-wrapper
Posted by: uh60pin - Dec-28-2022, 04:32 PM - Forum: General Coding Help - Replies (3)

Hello,

I am using the following code to play a video using a button press. It is set up so that the video starts playing when the button is pressed, ..... More

Print this item

  Help with creating loops and Iterations for ISO Weeks
Posted by: abecruz92 - Dec-28-2022, 02:52 PM - Forum: Homework - Replies (1)

Hi There.
Please see the attatchment "Py Question" to view my dataset.

Question 1
In Column C (Rating on the first day of the week
I wan..... More


Attached Files

Thumbnail(s)
   
Print this item

Information Web-scraping, multiple webpages
Posted by: Pabloty92 - Dec-28-2022, 12:55 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello there,

I'm a newbie and still learning python and I have some problem with my scraping code. Namely, I would like to scrap data from 273 page..... More

Print this item

  Name not found in response json
Posted by: NewbiePyt - Dec-28-2022, 09:47 AM - Forum: General Coding Help - Replies (4)

HI,

Newbie here.
Not sure whats wrong with this code.
If anyone could help.
Basically what i want is, once entered a name of a selection I would lik..... More


Attached Files

Thumbnail(s)
   
Print this item

  [Solved] Import syntax
Posted by: SpongeB0B - Dec-28-2022, 06:46 AM - Forum: General Coding Help - Replies (1)

Hi everyone,

on https://docs.python.org/3/library/concur...or-example

we can see [inline]import concurrent.futur..... More

Print this item

  String replacement in DB
Posted by: WJSwan - Dec-28-2022, 05:22 AM - Forum: General Coding Help - No Replies

I have two SQLite3 databases each with one table:
Database: MyModule.db has a table "content"
CREATE TABLE "content" (
"topic_id" integer,..... More

Print this item

  What colon (:) in Python mean in this case?
Posted by: Yapwc - Dec-28-2022, 04:20 AM - Forum: General Coding Help - Replies (4)

As shown below, may anyone help to explain what does the x: int and y: int does in the point class? Source code from [here](https://docs.python.or..... More

Print this item

  Trying to extract style attribute with BeautifulSoup
Posted by: knight2000 - Dec-28-2022, 02:22 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello all,

In practising some simple web scraping using Requests and BeautifulSoup, I've come across a challenge I haven't tried before and after s..... More

Print this item

  How to continuously receive messages until specified to stop using Bleak
Posted by: jacobbreen25 - Dec-27-2022, 10:35 PM - Forum: General Coding Help - Replies (3)

I am trying to make a program that receives data from a bluetooth device until you press a button to make it stop. I attempted to use start_notify how..... More

Print this item

  Constraint function
Posted by: tman - Dec-27-2022, 08:48 AM - Forum: Homework - Replies (4)

I need to code this function out; it’s subject to the following constraints.


e[k+1] = t*e[k+1] + eta_c*p_c[k] -p_d[k]/eta_c. (1)

p_c[k]*p_d..... More

Print this item

  Create a function vector
Posted by: Cooketaker - Dec-27-2022, 01:42 AM - Forum: Data Science - Replies (4)

I want to create a function that is modified with a loop and then I can call those different functions from a function vector.
The function to be mod..... More

Print this item

  selenium. xpath error
Posted by: 3lnyn0 - Dec-26-2022, 12:19 PM - Forum: General Coding Help - Replies (1)

Hi! why does't it click on the 'agree' button?

[python]from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
fr..... More

Print this item

  Pygame Pong
Posted by: menator01 - Dec-26-2022, 06:48 AM - Forum: Code sharing - No Replies

My attempt at a pong game. To play you will need to change the Human variable to True on line 156 and you will need to correct the path for the image ..... More

Print this item

  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row
Posted by: AaronCatolico1 - Dec-25-2022, 06:28 PM - Forum: General Coding Help - No Replies

I'm trying to figure out a way to append additional rows to a html table using the '..... More

Print this item

Information How to take url in telegram bot user input and put it as an argument in a function?
Posted by: askfriends - Dec-25-2022, 03:00 PM - Forum: General Coding Help - No Replies

hi;
Im new to python and telegram bot thing.
So i have created a python script using some library to bypass ad links, which takes url by using /bypa..... More

Print this item

  Find duplicate files in multiple directories
Posted by: Pavel_47 - Dec-25-2022, 02:32 PM - Forum: General Coding Help - Replies (9)

Hello,

This snippet allows to find duplicate files in multiple directories and count the number of duplicates.
[python]import os

dir1 = '/...pa..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Another app idea - intera... 2 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
  Python Installation issue 09-14, 11:16 RFHill Dev News and Disc...
  New to the field 09-14, 08:15 Polybunny Larz60+ News and Disc...
Most views
  The best Prog... 575783
  Tutorial Requ... 497018
  Web Scraping ... 439796
  Newbie with P... 383481
  New Users Int... 365226
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 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday
Williefaree Yesterday
faithsally Yesterday

User Panel Messages

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