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,510
» Latest member: ShaneHoown
» Forum threads: 38,584
» Forum posts: 174,836

Full Statistics

Online Users
There are currently 477 online users.
» 0 Member(s) | 471 Guest(s)
Google, Bing, Yandex, Mojeek, Apple

Latest Threads
Is Python used to make po...
Forum: Game Development
Last Post: RogereK
Yesterday, 04:17 AM
» Replies: 17
» Views: 31,747
Unequal values when added...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 12:24 AM
» Replies: 1
» Views: 158
Call CLI app with input?
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:52 PM
» Replies: 5
» Views: 347
backtesting can't optimiz...
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:46 PM
» Replies: 1
» Views: 129
Looking for ideas
Forum: Bar
Last Post: Larz60+
May-23-2025, 10:55 AM
» Replies: 2
» Views: 466
How to put my game loop i...
Forum: Game Development
Last Post: RogereK
May-23-2025, 12:35 AM
» Replies: 9
» Views: 2,702
Languages
Forum: General Coding Help
Last Post: Arush
May-22-2025, 06:51 PM
» Replies: 2
» Views: 256
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
May-21-2025, 07:49 AM
» Replies: 8
» Views: 21,436
Wish to write a code for ...
Forum: General Coding Help
Last Post: DeaD_EyE
May-21-2025, 06:08 AM
» Replies: 3
» Views: 672
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
May-20-2025, 12:26 PM
» Replies: 13
» Views: 29,013

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

  Query regarding regex
Posted by: Python_dumb - Jul-09-2022, 01:37 PM - Forum: General Coding Help - Replies (1)

Hi,

I am a beginner of python trying to learn through jupyter notebook.
I have a text file that contains close to 100k lines.
One sample line is..... More

Print this item

  Delete empty text files [SOLVED]
Posted by: AlphaInc - Jul-09-2022, 12:08 PM - Forum: General Coding Help - Replies (5)

Hello everybody,

I have a folder with many text-files, some of them are emtpy but have mutliple lines (for example, someone edited an empty text fi..... More

Print this item

  Apply textual data cleaning to several CSV files
Posted by: ErcoleL99 - Jul-09-2022, 08:17 AM - Forum: General Coding Help - No Replies

I need to perform a textual analysis that includes several speeches. The speeches were transcribed (using OCR) from several PDFs files into CSVs files..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Is Python used to make po... Yesterday, 04:17 ironsheep RogereK Game Developm...
  Unequal values when added... Yesterday, 00:24 Azdaghost deanhystad General Codin...
  Call CLI app with input? 05-23, 19:52 Winfried snippsat General Codin...
  backtesting can't optimiz... 05-23, 19:46 Running_Code snippsat General Codin...
  Looking for ideas 05-23, 10:55 Azdaghost Larz60+ Bar
  How to put my game loop i... 05-23, 00:35 temlotresid6 RogereK Game Developm...
  Languages 05-22, 18:51 Azdaghost Arush General Codin...
  Error on import: SyntaxEr... 05-21, 07:49 kirkwilliams2049 Kiongi General Codin...
  Wish to write a code for ... 05-21, 06:08 Hasan2025 DeaD_EyE General Codin...
  How can I write formatted... 05-20, 12:26 JohnJSal hanmen9527 General Codin...
  How to attach images to a... 05-19, 04:08 CynthiaMoore sethmike9 Board
Most views
  The best Prog... 567949
  Tutorial Requ... 467344
  Web Scraping ... 432775
  Newbie with P... 371472
  Thread remain... 343501
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+ 12053
buran 8171
snippsat 7328
deanhystad 6828
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ShaneHoown Yesterday
DichaelIntak Yesterday
Lewistot Yesterday
DichaelLoaCk Yesterday
Lewisquene Yesterday

User Panel Messages

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