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,236
» Latest member: Cristiano
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 44 online users.
» 2 Member(s) | 38 Guest(s)
Google, Bing, Applebot, perfringo, Cristiano

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

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

  Use Barcode Scanner With Python
Posted by: Extra - Jul-14-2022, 12:34 AM - Forum: General Coding Help - Replies (2)

Hello,

I have a handheld Bluetooth Barcode Scanner that I would like to use with my python program (An inventory system).
I would like to be able..... More

Print this item

  ModuleNotFound but pip shows module installed
Posted by: biscotty666 - Jul-13-2022, 08:59 PM - Forum: General Coding Help - Replies (2)

Hi,

I just encountered a strange problem. I'm trying to run my program but it fails to import modules at the beginning. Never-the-less pip reports ..... More

Print this item

  A better explanation of the last post
Posted by: Led_Zeppelin - Jul-13-2022, 04:54 PM - Forum: General Coding Help - Replies (9)

I think m description of the problem in the
"changing order of columns" might be a little
confusing so I am adding a screenshot

The code has ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Using SHAP Library for my LSTM model - "Attribute Error"
Posted by: vatsalmtailor - Jul-13-2022, 04:34 PM - Forum: Data Science - No Replies

We used Keras to build our LSTM model as follows:

[python]import keras
from keras.models import Sequential
from keras.layers import Dense
from ..... More

Print this item

  how to use .format?
Posted by: Frankduc - Jul-13-2022, 03:00 PM - Forum: General Coding Help - Replies (3)

Hi,

I would like to add degree at the end of the phrase.

"Il fait: {}".format(str(w.temperature('celsius')['temp']))
Like:..... More

Print this item

  Code changing rder of headers
Posted by: Led_Zeppelin - Jul-13-2022, 01:10 PM - Forum: General Coding Help - No Replies

I am working with the following output when using a Python3 program.

[code]
Unnamed: 0 timestamp time_period sensor_00 sensor_01 sensor_02 sensor_..... More

Print this item

  Modify LibreOffice's ods spreadsheet
Posted by: Pavel_47 - Jul-13-2022, 11:28 AM - Forum: General Coding Help - No Replies

Hello,

Here is a snippet on how to access rows in the worksheet.
The type of the "rows" object is odict_values.
Converting it to a list (i..... More

Print this item

  Seleniumwire and selenium
Posted by: cifel293 - Jul-13-2022, 10:16 AM - Forum: General Coding Help - No Replies

I had a code where I need to add proxy support and I used seleniumwire to add proxy. But after that my code always crash

Original code


[python..... More

Print this item

  viewing PDFs
Posted by: DPaul - Jul-13-2022, 09:47 AM - Forum: GUI - Replies (2)

Hi,
When I search jpgs or tifs, i can show them using the canvas widget in tKinter.
What about showing a ONE page pdf ? (no scrolling required)
Is ..... More

Print this item

  Tiling large images
Posted by: XavierPlatinum - Jul-12-2022, 11:20 PM - Forum: Game Development - Replies (7)

Hello,

Is it faster for pygame to draw a huge image if it is chopped up into smaller tiles?

Currently they are just circles, but I would like to..... More

Print this item

  Open windows cmd prompt and run cmds with python
Posted by: Extra - Jul-12-2022, 10:56 PM - Forum: General Coding Help - Replies (3)

Hello,

I'm trying to run cmds with python.

For example: I want my python program to be able to open/run MagicMirror by cd into it's directory(C:..... More

Print this item

  Highlight a row based on a value from SQLite table
Posted by: Extra - Jul-12-2022, 10:10 PM - Forum: GUI - Replies (2)

Hello,

I have a SQLite database that holds 2 columns (Category and Low_Quantity_Value) full of values.
I want to iterate through the columns and ..... More


Attached Files

Thumbnail(s)
       
Print this item

  numpy.array has no attribute head
Posted by: Led_Zeppelin - Jul-12-2022, 09:57 PM - Forum: General Coding Help - Replies (1)

I am trying to see the columns in a dataframe. I am using the following Python 3 code:

[code]
scaler=StandardScaler()
df=scaler.fit_transform(df..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 6 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 8 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 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... 578677
  Tutorial Requ... 509073
  Web Scraping ... 441835
  Newbie with P... 385787
  New Users Int... 375032
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
Cristiano Today
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday

User Panel Messages

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