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

Full Statistics

Online Users
There are currently 39 online users.
» 0 Member(s) | 36 Guest(s)
Bing, Google, Mojeek

Latest Threads
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 5
» Views: 9,854
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
4 hours ago
» Replies: 4
» Views: 108
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 127
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: 121
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,285
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 93
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 750
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: 137

 
  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

  help with ipaddress package
Posted by: jcrubaugh45 - Jul-12-2022, 08:53 PM - Forum: General Coding Help - Replies (5)

I have some code where its reading from an input txt file... in the file are both valid IP and invalid IP, as well as valid CIDR. Im trying to do some..... More

Print this item

  Docker -building a python image
Posted by: saisankalpj - Jul-12-2022, 03:51 PM - Forum: General Coding Help - Replies (5)

This is my Dockerfile
[python]FROM python:3.10

#create a working directory
WORKDIR /app

#gets our requirements.txt file into our image
COPY require..... More


Attached Files

Thumbnail(s)
   
Print this item

  float("{:.2f}" return long number?
Posted by: korenron - Jul-12-2022, 02:34 PM - Forum: General Coding Help - Replies (2)

Hello ,
I have a code that divide 2 numbers then give me 2 after the decimal point
in most cased it's working
but something I get this answer :
..... More

Print this item

  Generate Progress Bar while executing a task
Posted by: maiya - Jul-12-2022, 01:44 PM - Forum: GUI - Replies (7)

Hi All,

I want to popup a progress bar, while executing a task parallelly. Progress bar should display (as a popup) while clicking some button (fro..... More

Print this item

  list comprehension
Posted by: 3lnyn0 - Jul-11-2022, 08:31 PM - Forum: General Coding Help - Replies (4)

Hi! I try to modify the function below with list comprehation.
But I don't now how to write that else secvantion

This:
[python]def cakes(recipe, ..... More

Print this item

  Seeing al the data in a dataframe or numpy.array
Posted by: Led_Zeppelin - Jul-11-2022, 07:22 PM - Forum: General Coding Help - Replies (1)

I am programming in Python and reading large file. Itis a csv file. When I code df on a single line it gives me a lot of information on the file, the ..... More

Print this item

  Invalid format specifier Error
Posted by: Led_Zeppelin - Jul-11-2022, 02:47 PM - Forum: General Coding Help - Replies (2)

When I run the Seaborn/Python following code on my laptop computer, I get the following output

[error]
ValueError T..... More

Print this item

  Close and Open QDialog from QDialog 2
Posted by: ITSRL - Jul-11-2022, 01:30 PM - Forum: General Coding Help - Replies (4)

So, I have two QDialogs in 2 different classes, in one Qdialog I have a QTableWidget with some data from a MYSQL db, I want to close and re-open it wh..... More

Print this item

  2-D array
Posted by: imrobinotmar - Jul-11-2022, 01:11 PM - Forum: Homework - No Replies

Write a program that does the following:
Accept the following inputs:
(1) Number of nodes
(2) A 2-D array representing edges. ith edge connects no..... More

Print this item

  Split string using variable found in a list
Posted by: japo85 - Jul-11-2022, 08:02 AM - Forum: General Coding Help - Replies (2)

Hello,
I have to split a string using a variable found in a list, but it doesn't work. This is my code:
causali = ['IP', 'TP', 'PR1', 'PR2', 'PR3', ..... More

Print this item

  A simple "If...Else" question from a beginner
Posted by: Serena2022 - Jul-11-2022, 01:17 AM - Forum: General Coding Help - Replies (6)

Hi everyone! I encountered this problem and spent hours on trying to resolve it:

The following does run just fine when you enter "eggs", or "cerea..... More


Attached Files

.py   Question.py (Size: 2.42 KB / Downloads: 266)
Print this item

  Mixing Boolean and comparison operators
Posted by: Mark17 - Jul-10-2022, 02:48 PM - Forum: General Coding Help - Replies (3)

I'm reading an intro to Python book and it gives these examples:

[Python]
>>> (4 < 5) and (5 < 6)
True
>>> (4 < 5) and (9 < 6)
False
>>> (1 ==..... More

Print this item

  Adding string after every 3rd charater [SOLVED]
Posted by: AlphaInc - Jul-10-2022, 01:34 PM - Forum: General Coding Help - Replies (2)

Hello everybody,

I want to get the filesize of a folder and store it as a variable. So far I've manged to do so:

[python]import os

def get_si..... More

Print this item

  list digit into number
Posted by: Voldyy - Jul-10-2022, 12:51 PM - Forum: Homework - Replies (2)

Hi, how can i change this code to work for two-digit numbers or three-digit number?

For now only work for single digit numbers, tried to change al..... More

Print this item

  how to expand each unique value in another column and fill zero if no match
Posted by: SriRajesh - Jul-10-2022, 09:19 AM - Forum: Data Science - No Replies

Hi,
I have below df:

[python]first_name second_name X Y count
A A1 0.1 0.4 1
A A1 ..... More

Print this item

  How to write the condition for deleting multiple lines?
Posted by: Lky - Jul-10-2022, 05:36 AM - Forum: General Coding Help - Replies (3)

Does anyone know how to delete lines in txt file according to user input without using any list or dictionary?

For example content inside txt file:..... More

Print this item

  looking for code to do timed prompt on terminal
Posted by: Skaperen - Jul-10-2022, 03:35 AM - Forum: News and Discussions - Replies (1)

i am looking for code or a function that can do a time limited prompt at a terminal. this would usually be a one key input to end the prompt and let ..... More

Print this item

  Add Tagged Objects to a Palo Alto Firewall device Group
Posted by: jcrubaugh45 - Jul-10-2022, 12:30 AM - Forum: Code sharing - No Replies

I just thought I would share some code Ive written for interacting with Palo Alto firewalls which are managed by Panorama.
[python]
import requests..... More

Print this item

Question coding bootcamp question
Posted by: jcrubaugh45 - Jul-09-2022, 11:58 PM - Forum: News and Discussions - No Replies

I'm sorry if this doesn't belong here, but I'm feeling stuck in a rut. This might be long so bear with me...

I began my python journey about a year..... More

Print this item

  Delete multiple lines from txt file
Posted by: Lky - Jul-09-2022, 04:43 PM - Forum: General Coding Help - Replies (6)

Does anyone know how to delete lines in txt file according to user input without using any list or dictionary?

For example content inside txt file:..... More

Print this item

  if else repeating
Posted by: Frankduc - Jul-09-2022, 03:39 PM - Forum: General Coding Help - Replies (12)

Hello,

Something i never understood if why with an if and else statement there is that repeat effect.
Inside the try except the voice is saying "l..... More

Print this item

  Automating Facebook Posts
Posted by: mieciow - Jul-09-2022, 01:47 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello people
I'm trying with selenium to post automatically in classified groups on facebook
I can log in, join the group, capture or sell something..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Lottery generator (beginn... 2 hours ago Hullari Pedroski55 General Codin...
  Calling python from anoth... 4 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... 580331
  Tutorial Requ... 518818
  Web Scraping ... 442755
  Newbie with P... 386941
  New Users Int... 386035
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
Michaelhauct Yesterday
eedjsa Yesterday
byanfrances6176 Yesterday
Amowtonyl Yesterday
sofiadavis1840 Yesterday

User Panel Messages

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