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,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

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

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:56 AM
» Replies: 4
» Views: 133
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 107
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 77
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 122
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,162
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,373
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,570
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 196
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,202
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,452

 
Question Need help with NumPy Histogram function coding
Posted by: Triikey - May-15-2023, 09:08 AM - Forum: Homework - Replies (1)

Hi, I'm a student currently doing experimental work in a lab and need to analyse some data. The data includes sniffing data from animals and I need to..... More

Print this item

  Context-sensitive delimiter
Posted by: ZZTurn - May-15-2023, 08:19 AM - Forum: General Coding Help - Replies (9)

First: I didn't understand the moderator's message about 'labels' regarding my last post at all. I went to the link re: posting instructions but I'm a..... More

Print this item

  Start print a text after open an async task via button
Posted by: Nietzsche - May-15-2023, 06:52 AM - Forum: General Coding Help - No Replies

Hello, the code in this example: https://pastebin.com/FAnuZgW1 should open a GUI. After i open the GUI i have an button and start from this an async t..... More

Print this item

  Splitting vocals from .wav file
Posted by: cfescript - May-15-2023, 01:32 AM - Forum: General Coding Help - Replies (1)

I am trying to take a .wav file and extract the vocals from it. I want to use the vocals to move the mouth of something to sing along to a song. I tri..... More

Print this item

  OR-Tools LP Limit Number of Elements in Solution
Posted by: idratherbecoding - May-14-2023, 11:02 PM - Forum: Data Science - No Replies

I have a relatively simple binary integer optimization problem and I am using Google OR-Tools' linear solver. I started the project in C#, but have si..... More

Print this item

  how can I call the API using python
Posted by: alifihri - May-14-2023, 10:09 PM - Forum: General Coding Help - Replies (5)

I'm using this code for a while and it worked well:

[python]# This is needed to send POST and GET requests
import requests
import csv
import num..... More

Print this item

  How do you get Python to print just one value in a list?
Posted by: 357mag - May-14-2023, 07:20 PM - Forum: General Coding Help - Replies (3)

If I just want Python to print the value in a certain index position in list how do I do it?

This is not giving me what I want:

[python]
number..... More

Print this item

  Surface and rectangle in pygame
Posted by: Fabrizio_fg - May-14-2023, 01:53 PM - Forum: Game Development - Replies (7)

Hello eveyone,

Just a stupid question:
in many tutorials found on internet to draw object on the window we use surfaces and rectangles.
first we ..... More

Print this item

  [SOLVED] [loop] Exclude ranges in… range?
Posted by: Winfried - May-14-2023, 01:36 PM - Forum: General Coding Help - Replies (2)

Hello,

I need to exclude pages in a loop, but those exceptions could be several pages, so I need to find a way to specify individual pages as well ..... More

Print this item

  NoReverseMatch at /
Posted by: pythonpaul32 - May-14-2023, 08:41 AM - Forum: Web Scraping & Web Development - Replies (2)

I am trying to make a hotel reservation app with Django, but I am completely stumped why I keep getting this error

NoReverseMatch at /
Reverse for..... More

Print this item

  Problem with colorkey
Posted by: Phidias618 - May-14-2023, 08:27 AM - Forum: Game Development - Replies (4)

Hello, in one of my project I encounter a problem with pygame.set_colorkey,
I have a code like this, where Sprite is just a class to load and get Spr..... More

Print this item

  More OCR
Posted by: DPaul - May-14-2023, 06:54 AM - Forum: Bar - Replies (6)

Hi,
It happens that some prayer cards are in poor condition or have poor print quality.
Amongst the zillions processed, they do not always stand out..... More

Print this item

  where is documentation for stat result attributes in PDF docs?
Posted by: Skaperen - May-13-2023, 11:50 PM - Forum: News and Discussions - Replies (5)

in The Python Library Reference there are three places i find lower case "st_mode". all three are in code samples. i find the same for lower case "s..... More

Print this item

  variable not defined inside a list comprehension
Posted by: Phidias618 - May-13-2023, 08:47 PM - Forum: News and Discussions - Replies (1)

Hello, in a program i have a class like this one but when in run the code i get that x is not defined, is this problem relative to list comprehension?..... More

Print this item

  combobox
Posted by: paulie70 - May-13-2023, 06:44 PM - Forum: GUI - Replies (3)

hello

i am new at python en gui tkinter my combobox don't show

[python]import tkinter
from tkinter import ttk



window = tkinter.Tk(..... More

Print this item

  Why there is not __break__ dunder method
Posted by: Phidias618 - May-13-2023, 02:42 PM - Forum: News and Discussions - Replies (4)

Hello,
Yesterday I ran into an issue, i try to iterate multiple time trough a custom class,
the class is a chess Board and iterating trough it would g..... More

Print this item

  TCP server syntax error
Posted by: wabbit - May-13-2023, 11:29 AM - Forum: Networking - Replies (2)

I'm trying to create a tcp server on python. Does anyone know why I'm receiving this syntax error despite defining 'server' earlier in the code. Is it..... More


Attached Files

Thumbnail(s)
   
Print this item

  Advancing Through Variables In A List
Posted by: knight2000 - May-13-2023, 03:30 AM - Forum: General Coding Help - No Replies

Hi guys,

I'm practising some simple webscraping on a website which has different categories and within each category, has a number of pages. What ..... More

Print this item

  Bundesbank API Problems
Posted by: illmattic - May-12-2023, 05:21 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,

So far I'm 0/2 on APIs. I am a beginner but I keep running into problems with APIs.

The German Bundesbank provides an API and the docume..... More

Print this item

  function on a different tab ?
Posted by: trix - May-12-2023, 04:28 PM - Forum: General Coding Help - Replies (30)

hello,

i,m programming a raspberry pi pico with the thonny IDE

its gonna be a big programm Smile
so i want to create some c..... More

Print this item

  Installation problems
Posted by: standenman - May-12-2023, 01:59 PM - Forum: Data Science - Replies (4)

I am having terrible problems with using python. I have installed Python 3.11.3. I have created a virtual environment. I activate the environment a..... More

Print this item

  Python script running under windows over nssm.exe
Posted by: JaroslavZ - May-12-2023, 09:22 AM - Forum: General Coding Help - No Replies

I have a python script that runs inside this command:

subprocess.run([driver, '/print:printer=' + printer, filename])
If the sc..... More


Attached Files

.py   PrinterBridge.py (Size: 3.1 KB / Downloads: 239)
Print this item

  Trying to understand global variables
Posted by: 357mag - May-12-2023, 04:40 AM - Forum: General Coding Help - Replies (5)

Just learning about using a global variable. I have this going:
[python]
x = 4

def show_value():
print('Value of x: '+ str(x))
# x += 3..... More

Print this item

  [split] plt.style() in matplotlib causes error
Posted by: olufaruqu - May-11-2023, 04:45 PM - Forum: Data Science - Replies (4)

Dear Team

I tried running the below command on my anaconda prompt in one of a serial steps to install jupyter-matplotlib with a self paced video b..... More

Print this item

  Raspberry PI with DHT22 Sensors
Posted by: itpilot - May-11-2023, 09:41 AM - Forum: General Coding Help - Replies (6)

guys please can you help the noob

i have connected 6 x DHT22 Temperature and Humidity Sensors on my Raspberry PI 4

I am g..... More

Print this item

  Error coming
Posted by: PKT - May-11-2023, 09:06 AM - Forum: GUI - Replies (1)

Hi,

I am write program on python program & it is running perfectly.

Now i tried to create exe file using pyinstaller.

exe file created but no..... More

Print this item

  double keyed dictionaries
Posted by: Skaperen - May-11-2023, 02:53 AM - Forum: News and Discussions - Replies (2)

in many cases i need to go both ways in references held by a dictionary. i very often use the same one dictionary when i know the keys each way will ..... More

Print this item

  Master thesis research: A Python version update behavior survey
Posted by: AJB96 - May-10-2023, 04:56 PM - Forum: Bar - Replies (2)

Hi there!

I am currently writing my Master thesis research project related to Python.

The ultimate goal of the project is to explore and underst..... More

Print this item

  Failure in the Code to integrate via API Holded (accounting system) to Excel.
Posted by: maicolvela - May-10-2023, 01:08 PM - Forum: Web Scraping & Web Development - Replies (1)

My code fails and I can't find or fix the errors, could you help me please.

[python]import requests
import pandas as pd

# URL para obtener el a..... More

Print this item

  Understanding venv; How do I ensure my python script uses the environment every time?
Posted by: Calab - May-09-2023, 09:49 PM - Forum: General Coding Help - Replies (1)

I have several python scripts. Each script starts with a shebang line of #!/usr/local/bin/python3. To execute my scripts I simply enter ./scriptname.p..... More

Print this item

Thumbs Down I hate "List index out of range"
Posted by: Melen - May-09-2023, 09:44 PM - Forum: General Coding Help - Replies (20)

Hello!

I have a question, but please don't give me the answer. I'm just looking for some tips. I'm new to Python, and I'm posting here because I ca..... More

Print this item

  API Request / JSON
Posted by: illmattic - May-09-2023, 01:45 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I am having difficulty pulling data from an API which says that parameter content needs to be application/json. Here is the link to the the ..... More

Print this item

  html module in python 3.6.8
Posted by: suifra - May-09-2023, 07:24 AM - Forum: General Coding Help - Replies (9)

I am new to Python and stuck in an issue, have researched in stackoverflow but couldnt get an answer. The problem statement is as below.

Problem: I..... More

Print this item

  It seems you have to define functions at the top
Posted by: 357mag - May-09-2023, 04:17 AM - Forum: General Coding Help - Replies (7)

I wrote a program that defines two functions: one function squares an integer and the other function cubes it.

When I put the function definitions ..... More

Print this item

  Splitting PDF at Bookmark level 2
Posted by: standenman - May-08-2023, 07:20 PM - Forum: Data Science - Replies (10)

I am trying to split a pdf document at the second bookmark level Here is my code:

[python]import os
import PyPDF2

# Open the PDF file
input_p..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... Today, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [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...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578711
  Tutorial Requ... 509260
  Web Scraping ... 441853
  Newbie with P... 385807
  New Users Int... 375162
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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