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,931
» Latest member: XenonBlack
» Forum threads: 38,720
» Forum posts: 175,502

Full Statistics

Online Users
There are currently 41 online users.
» 0 Member(s) | 35 Guest(s)
Bing, Google, AOL, Apple, Mojeek

Latest Threads
Too much space between gr...
Forum: GUI
Last Post: deanhystad
6 hours ago
» Replies: 3
» Views: 933
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 373
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-15-2025, 08:58 PM
» Replies: 8
» Views: 2,528
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,559
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 449
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 140
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 2,954
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,202
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 884
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-14-2025, 11:25 AM
» Replies: 7
» Views: 2,282

 
  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

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Too much space ... 6 hours ago RonR deanhystad GUI
  Another app idea - intera... Yesterday, 07:07 decuser Lenowell News and Disc...
  403 Error 09-15, 20:58 CaptainNewb snippsat Web Scraping ...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
  Python Installation issue 09-14, 11:16 RFHill Dev News and Disc...
Most views
  The best Prog... 575841
  Tutorial Requ... 497167
  Web Scraping ... 439846
  Newbie with P... 383556
  New Users Int... 365540
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
XenonBlack Yesterday
Lenowell Yesterday
luisshulez6883 09-15
KennedyRichadGuerra 09-15
Williefaree 09-15

User Panel Messages

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