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,470
» Latest member: ishaD
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 737 online users.
» 0 Member(s) | 734 Guest(s)
Bing, Google, Yandex

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 191
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 142
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,323
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 109
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 391
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,194
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 367
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 435
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 993
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 242

 
  [solved] how to speed-up huge data in an ascii file ?
Posted by: paul18fr - May-15-2023, 07:31 PM - Forum: Data Science - Replies (4)

I've not paid any attention on that topic so far, but now I'm wondering how I can write (in a fast way) a huge amount of data in an [u][b]ascii file[/..... More

Print this item

  Database that can compress a column, or all data, automatically?
Posted by: Calab - May-15-2023, 05:53 PM - Forum: General Coding Help - Replies (3)

I have a Sqlite3 database that I use to store testing data. Most of the columns are small but one column can be HUGE as it stores the JSON results fro..... More

Print this item

  Index error help
Posted by: MRsquared - May-15-2023, 02:41 PM - Forum: General Coding Help - Replies (1)

Hi,

I am extracting historic data from a scraping website using the following code. However, I get the error 'IndexError: index 228 is out of bound..... More

Print this item

  Problem with Pyinstaller. No module named '_tkinter'
Posted by: tonynapoli2309 - May-15-2023, 02:38 PM - Forum: General Coding Help - No Replies

Hello, I'm trying to obtain a single exectuable file to run on my MAC M1.

I use Pyinstaller in this way:

[b]pyinstaller --onefile myproject.py[/..... More

Print this item

  [BeautifulSoup] Find </body>?
Posted by: Winfried - May-15-2023, 09:49 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

Does someone know how to find the "</body>" closing bit in an HTML file?

[python]from bs4 import BeautifulSoup as bs

soup = bs("file...... More

Print this item

Lightbulb Swahili Frashcard program
Posted by: Milan - May-15-2023, 09:29 AM - Forum: Code sharing - No Replies

Hello team,

I would like to share a project.

It is a flashcard card program that helps people to learn Swahili words.

Swahili is a language s..... More

Print this item

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: 202)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 564553
  Tutorial Requ... 453171
  Web Scraping ... 429527
  Newbie with P... 364813
  Thread remain... 337242
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ishaD Today
fitobar43 Today
AymanNassar Yesterday
Shailesh 05-15
jackdennis272 05-15

User Panel Messages

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