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,386
» Latest member: itx_sumeet
» Forum threads: 38,820
» Forum posts: 176,012

Full Statistics

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

Latest Threads
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 5
» Views: 9,864
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
6 hours ago
» Replies: 4
» Views: 112
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 129
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 70
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 129
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,286
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 94
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 751
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 159
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Dec-21-2025, 07:43 AM
» Replies: 1
» Views: 138

 
  is there an itertor of chunks?
Posted by: Skaperen - Jul-19-2022, 04:11 AM - Forum: General Coding Help - Replies (8)

i have a list (or tuple) of many items. here is a very simple case:

foo = (9,8,7,6,5,4,3,2,1,0)
what i want to do is step thro..... More

Print this item

  search a list or tuple for a specific type ot class
Posted by: Skaperen - Jul-19-2022, 01:07 AM - Forum: General Coding Help - Replies (8)

i can easily search a list to find the position of a specific value if i have the exact value using the index function. if i know only ..... More

Print this item

Exclamation Function Not Working
Posted by: Alivegamer - Jul-19-2022, 12:55 AM - Forum: General Coding Help - Replies (7)

I am making a text game. And what I am doing is using another python file as a module in the Main python file(Mod File). And The main file calls The I..... More

Print this item

  Laggy Game Movement
Posted by: game_slayer_99 - Jul-18-2022, 09:55 PM - Forum: Game Development - Replies (11)

I've noticed that the movement in my Pong game is experiencing a strange amount of lag when I start the game up in Python, despite coding it to run at..... More

Print this item

  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'"
Posted by: kalle - Jul-18-2022, 07:00 PM - Forum: Data Science - Replies (2)

Hi

I have equation that i want to execute, but i cannot get it to run.

[python]import numpy as np

x = (np.abs((np.sign)*(90)-0.5)-0.5) * (np...... More

Print this item

  Very First Table
Posted by: drunkenneo - Jul-18-2022, 04:53 PM - Forum: General Coding Help - Replies (1)

Hi

I am trying to create a survey app where user will be asked some questions and they need to answer.

I am creating it in Django.

I have cre..... More

Print this item

  Stripping numbers from text
Posted by: ebolisa - Jul-18-2022, 01:26 PM - Forum: General Coding Help - Replies (4)

Hi,

The response from a web form fills an array. Its content may average from empty to several strings.
I need to extract data from said strings s..... More

Print this item

  Substitue multiple substrings in one command
Posted by: Pavel_47 - Jul-18-2022, 01:24 PM - Forum: General Coding Help - No Replies

Hello,

I have been looking for a solution to replace several different string fragments with different other fragments.
Here's a solution I found,..... More

Print this item

  KivyMD App to APK Convert Error
Posted by: Nick_MC - Jul-18-2022, 08:59 AM - Forum: General Coding Help - No Replies

I'm trying to convert my kivymd app to apk using Google Colab. I also use firebase for this app. However, it runs into an error and I don't know how t..... More

Print this item

  breaking out of nested loops
Posted by: Skaperen - Jul-17-2022, 10:53 PM - Forum: General Coding Help - Replies (3)

deep in some nested loops and a condition test, i need to break out of all of those loops. is there an easy way to do this? i can't use [i]go..... More

Print this item

  [Solved]Display PyQtTable results from A->Z & Z->A
Posted by: Extra - Jul-17-2022, 09:28 PM - Forum: GUI - Replies (2)

Hello,

How do I get my table display to sort the results depending on what header I click.

For ex:
If I click the "Categories" header it shou..... More


Attached Files

Thumbnail(s)
   
Print this item

  Scaping pages created by javascript
Posted by: mbizzl - Jul-17-2022, 07:09 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi all, thanks in advance for any help or advice.

I am trying to create a script to scrape data from a website that contains status for childcare f..... More

Print this item

  Writing to json file
Posted by: ebolisa - Jul-17-2022, 04:13 PM - Forum: General Coding Help - Replies (1)

Hi
At times, the below function writes an extra "}" in the json file and I cannot see where the problem may lie. I appreciate some guidance.
Micropy..... More

Print this item

  I have written a program that outputs data based on GPS signal
Posted by: kalle - Jul-17-2022, 02:14 PM - Forum: General Coding Help - Replies (1)

Hi guys, new member here!

Im seeking for some advice regarding my program. What does it do? It reads the output from a USB GPS dongle, and calculat..... More

Print this item

  Match substring using regex
Posted by: Pavel_47 - Jul-17-2022, 12:36 PM - Forum: General Coding Help - Replies (6)

Hello,

Here is case that doesn't work:

[python]import re
video_info = 'Réalisation :\nPierre Lazarus\nScénario :\nEmmanuelle Moreau\nNoémie Par..... More

Print this item

  Code running many times nad not just one?
Posted by: korenron - Jul-17-2022, 07:56 AM - Forum: General Coding Help - Replies (4)

hello,
something isn't understaood for me
I have this code :

[python]my_os = platform.system()
print("OS in my system : ", my_os)

if my_os ..... More

Print this item

  Get the image's coordinates not the canvas' when navigate on an image
Posted by: hobbyist - Jul-17-2022, 07:39 AM - Forum: General Coding Help - Replies (9)

So, the idea is that I try to load an image, navigate Up, Down, Right, Left with the arrows and each time I press the mouse button to get the image's ..... More

Print this item

  [Solved] Trying to rerun a snippet of code
Posted by: paracel - Jul-17-2022, 02:25 AM - Forum: General Coding Help - Replies (3)

Hello, I'm still fairly new to Python3. I'm tyring to figure out the best way to rerun this code when a key ins't pushed correctly. Appreciate any hel..... More

Print this item

  Find and Replace numbers in String
Posted by: giddyhead - Jul-16-2022, 10:39 PM - Forum: General Coding Help - Replies (2)

Hello everyone

I am looking for a way to take out numbers attached to concat string in paragraphs.

Before:
For example Paragraph:

1
It was ..... More

Print this item

  Complete Guide to Shodan
Posted by: Calli - Jul-16-2022, 04:32 PM - Forum: General Coding Help - Replies (4)

I am going through this Book "Complete Guide to Shodan" and there is this code but it doesn't work

[python]import shodan
api = shodan.Shodan('mya..... More

Print this item

  Click on a button on web page using Selenium
Posted by: Pavel_47 - Jul-16-2022, 02:34 PM - Forum: Web Scraping & Web Development - Replies (7)

Hello,

Here is example where I'm looking for a solution to click on button "Lire plus" on this page:
..... More

Print this item

  Inserting line feeds and comments into a beautifulsoup string
Posted by: arbiel - Jul-16-2022, 09:15 AM - Forum: General Coding Help - Replies (1)

Hi

In a python script which creates html documents using beautifulsoup, I want to insert new lines and html comments between some tags, at specific..... More

Print this item

  Opening CMD from Python
Posted by: Oshadha - Jul-16-2022, 02:54 AM - Forum: General Coding Help - Replies (2)

I want to open a cmd terminal at a specific directory, and run a command, then get the output to a variable in python. I searched the internet but cou..... More

Print this item

  Why my function is returning None?
Posted by: PauloDAS - Jul-16-2022, 12:57 AM - Forum: General Coding Help - Replies (6)

Hello,

Someone can explain why my function is returning None, please? I know that, if I add a "return(word)" in the last line of the "else" block,..... More

Print this item

  How to get a job as a Software Developer in the UK - complete guide
Posted by: jharp - Jul-15-2022, 01:38 PM - Forum: Bar - No Replies

Quick summary:

[Image: developer-find-job-in-the-uk-guide.svg]

In this guide, we will try to answer all t..... More

Print this item

  [split] .delete and .insert not working
Posted by: brigette - Jul-15-2022, 12:20 PM - Forum: GUI - Replies (5)

Yoriz Wrote:Split from https://python-forum.io/thread-27861-post-118832.html into its own thread

Hello. Can anyone help me too? .delete ..... More

Print this item

  InvalidIndexError: (slice(None, None, None), slice(None, -1, None))
Posted by: SuperNinja3I3 - Jul-15-2022, 04:54 AM - Forum: General Coding Help - Replies (1)

[python]data = pd.read_csv('data.csv')

X = data[:,:-1]
Y = data['Outcome']

X_train,X_test,Y_train,Y_test = train_test_split(X,Y, test_size=0.3)..... More


Attached Files

.csv   diabetes.csv (Size: 23.31 KB / Downloads: 335)
Print this item

  TypeError: unsupported operand type(s) for +: 'dict' and 'int'
Posted by: nick12341234 - Jul-14-2022, 09:07 PM - Forum: General Coding Help - Replies (1)

Hello, can anyone explain me why this happens?


[error]Traceback (most recent call last):
File "/Users/nick/Documents/yo.py", line 1661, in <mo..... More

Print this item

  Rolling window and apply code
Posted by: JunkBoy - Jul-14-2022, 06:00 PM - Forum: Data Science - Replies (6)

Hey
I have many large data frames that I need to split into several new data frames.
they need to be split in rolling window split. In this case th..... More

Print this item

  python can - general question
Posted by: caslor - Jul-14-2022, 05:21 PM - Forum: General Coding Help - No Replies

Hi to all.
recently i start to experiment with a python-can (can bus) as i want in the future to make a communication between a raspberry pi with can ..... More

Print this item

  [Solved]Help comparing 2 databases
Posted by: Extra - Jul-14-2022, 02:11 PM - Forum: General Coding Help - Replies (2)

Hello,

I have two SQLite databases that I want to compare (My 'inventory.db' and my 'categories.db').

So, my Inventory Database stores the Name,..... More

Print this item

  If 2nd input in the game is correct, replace with 1st input and loop the game
Posted by: tylerdurdane - Jul-14-2022, 12:40 PM - Forum: Game Development - Replies (11)

Trying to write a simple game to improve my Python knowledge as a newbie.

The game starts with asking a first country name Then asking another cou..... More

Print this item

  Figure Gets Larger Every time I click a show button
Posted by: joshuagreineder - Jul-14-2022, 12:09 PM - Forum: GUI - Replies (2)

Hello,
I am using a template I found to create a python GUI that allows me to navigate through my MatPlotlib plots, however, when I try to show a new..... More

Print this item

  For Word, Count in List (Counts.Items())
Posted by: new_coder_231013 - Jul-14-2022, 12:04 PM - Forum: General Coding Help - Replies (6)

Hello,

I'm going through an introductory Python book and there's some code for a program that finds the most common word in a text file. Please see..... More

Print this item

Question [Solved] Private static files
Posted by: SpongeB0B - Jul-14-2022, 05:21 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi everyone,

I would like that certain files be only available to logged/authorized persons.

So not in the /static folder that is availab..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Lottery generator (beginn... 4 hours ago Hullari Pedroski55 General Codin...
  Calling python from anoth... 6 hours ago eedjsa bowlofred 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...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
  Spaces in string 12-19, 13:04 Mallard Mallard General Codin...
Most views
  The best Prog... 580333
  Tutorial Requ... 518841
  Web Scraping ... 442758
  Newbie with P... 386942
  New Users Int... 386050
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
itx_sumeet Today
zaathonyshulze4201 Today
Michaelhauct Yesterday
eedjsa Yesterday
byanfrances6176 Yesterday

User Panel Messages

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