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,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 42 Guest(s)
Bing, AOL, Apple, Google, snippsat

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

 
  Why the NameError?
Posted by: Mark17 - May-16-2022, 02:27 PM - Forum: General Coding Help - Replies (4)

Hi all,

In Jupyter Notebook I ran these cells:

[Python]
sample_data = [[3000,18], [3200,17], [3500,16], [4000,12]]
sample_df = pd.DataFrame(sa..... More

Print this item

  importing functions from a separate python file in a separate directory
Posted by: Scordomaniac - May-16-2022, 01:44 PM - Forum: General Coding Help - Replies (3)

So I can easily call a function from a file in the same directory as the one i'm running:
[python]from functestsetup import functest
functest()
[/p..... More

Print this item

  I have an issue with Netmiko Error reading SSH protocol banner
Posted by: omarhegazy - May-16-2022, 11:54 AM - Forum: General Coding Help - Replies (2)

I wrote a code to go through an inventory list of Cisco devices and do some tasks. My problem is because the inventory list is huge, and no guarantee ..... More

Print this item

Question Program: Assign roles to players depending on priorities
Posted by: raquel86 - May-16-2022, 11:10 AM - Forum: Homework - No Replies

Hi!
I'm new in the forum and I hope this is the right place to ask this. I need guidance to develop a program in Python. I wouldn't exactly need the ..... More

Print this item

  listbox selection
Posted by: DPaul - May-16-2022, 09:30 AM - Forum: GUI - Replies (4)

Hi,
I have a listbox for MULTIPLE selection.

def getElement(event):
    selection = event.widget.curselection()
the variable "sel..... More

Print this item

  Make Random Choices the same [SOLVED]
Posted by: AlphaInc - May-16-2022, 09:17 AM - Forum: General Coding Help - Replies (6)

Hello everybody,

I wanted to set up a list of strings and print one randomly.
This was really easy to set up:
[python]
#Random Variables
myList..... More

Print this item

  Passionate Python developer from India "waiting" :/ to get hired
Posted by: sunando_samaddar - May-16-2022, 07:20 AM - Forum: Jobs - Replies (3)

Hi, I've been struggling, and struggling, and struggling in my city, Kolkata, for the last 8 years. Sad It's time I need somebody who can hire me..... More


Attached Files

.pdf   resume052022.pdf (Size: 76.12 KB / Downloads: 3)
Print this item

  Refresh token for Wyze SDK
Posted by: duckredbeard - May-16-2022, 04:33 AM - Forum: General Coding Help - No Replies

I have added a few Wyze smart bulbs to my home security system, running them on their own program but using door sensors from the security program. E..... More

Print this item

  Mixed types of numeric data in the statistics module
Posted by: stevendaprano - May-16-2022, 02:49 AM - Forum: News and Discussions - Replies (2)

Users of the statistics module, how often do you use it with heterogeneous data (mixed numeric types)?

Currently most of the functions try hard to ..... More

Print this item

  How to instantly update the plot by getting values from a Scale widget?
Posted by: OLE - May-15-2022, 09:30 PM - Forum: GUI - Replies (20)

I have a 3d grid system of 3*4*10 grids (nx*ny*nz), and I have assigned a random value to each grid. I want to plot different surfaces o..... More

Print this item

  How do I solve the second problem?
Posted by: Cranberry - May-15-2022, 05:37 PM - Forum: General Coding Help - Replies (1)

I'm stuck, I'm looking to know how to do the Second Problem. I'll share what I have for the first problem in hopes of getting help with the sec..... More

Print this item

  Problem with searching over Beautiful Soap object
Posted by: Pavel_47 - May-15-2022, 09:37 AM - Forum: Web Scraping & Web Development - Replies (30)

Hello,

Here is BS object where I want to extract "publisher" value.
The value I want to extract is [b]Springer; 1st ed. 2020 edition (April 27, 20..... More

Print this item

  QAbstractTableModel: Indexing a list of dictionaries
Posted by: BigMan - May-15-2022, 03:47 AM - Forum: GUI - Replies (1)

Hi,

I have a list of dictionaires. Something like that:

[python]
addressbook = []
address_1 = {"city": "Berlin", street": "Alexanderplatz"}
a..... More

Print this item

  (OpenCV) Help to improve code for object detection and finding center of it
Posted by: saoko - May-14-2022, 05:34 PM - Forum: General Coding Help - No Replies

Hello. I'm writing the code to find contours and extract the bounding rectangle coordinates, then find center coordinate and draw center point. But I'..... More

Print this item

  Help with passing values in npyscreen
Posted by: Extra - May-14-2022, 02:25 PM - Forum: General Coding Help - Replies (8)

Hello,

I'm playing around with npyscreen to make my terminal application look nicer and be more user friendly.
I'm trying to take in the user's in..... More

Print this item

  error
Posted by: muratuzun - May-14-2022, 02:17 PM - Forum: General Coding Help - Replies (1)

Hello,

When I run the csv file data I have with the following command, I get an error. I wonder if I got this from a ready-made command? What shoul..... More

Print this item

  Web scraping for search results
Posted by: JOE - May-14-2022, 06:32 AM - Forum: Web Scraping & Web Development - Replies (7)

Hi , I was trying to extract search results but has the error "AttributeError: 'list' object has no attribute 'text'[/output]"

Please suggest.

[..... More


Attached Files

Thumbnail(s)
   
Print this item

  sum() list from SQLAlchemy output
Posted by: Personne - May-13-2022, 10:51 PM - Forum: General Coding Help - Replies (5)

Hello guys,

I'm sure it is simple. Have a SQLAlchemy query such as:
[python]qp = db.session.query(UInventory, func.sum(UInventory.quantity).label('to..... More

Print this item

  Invalid syntax
Posted by: Slome - May-13-2022, 08:12 PM - Forum: Homework - Replies (2)

When i run this,


import csv

def main():
with open("battle_royale.csv") as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
..... More


Attached Files

Thumbnail(s)
   
Print this item

  ATM machine demo with Python and Django
Posted by: Drone4four - May-13-2022, 07:49 PM - Forum: Web Scraping & Web Development - Replies (1)

This is a long post. The most important information is at the top and gradually progresses to less and less relevant information. So you don’t have to..... More

Print this item

  How to crop a video to 9:16?
Posted by: yschrs - May-13-2022, 07:34 PM - Forum: General Coding Help - Replies (3)

Hello everyone,

I am looking to crop my video that has a standard aspect ratio (1920x 1080) to a 9:16 aspect ratio (1080 x 1920).

I saw that the..... More

Print this item

  How to fix this?
Posted by: DERO - May-13-2022, 06:43 PM - Forum: Homework - No Replies

Hi.
So, my question is:
When I ran the below code all values change to custom(as it should be), except for the last phrase. I wonder if anyone has a..... More

Print this item

  How to fix this?
Posted by: DERO - May-13-2022, 06:43 PM - Forum: Homework - Replies (1)

Hi.
So, my question is:
When I ran the below code all values change to custom(as it should be), except for the last phrase. I wonder if anyone has a..... More

Print this item

  Convert a string to a function
Posted by: mikepy - May-13-2022, 05:30 PM - Forum: General Coding Help - Replies (8)

Hello, is there a possibility or library to convert the following string to a function?

[code]func_str = '''def test(event, x, y, flags, data):
..... More

Print this item

  Check if a value is present in each group
Posted by: Menthix - May-13-2022, 03:42 PM - Forum: General Coding Help - Replies (8)

Hi,

I have a dataframe with two columns : an 'ID' column and a column 'V1' with different values between 1 and 3.
I'd like to mark each ID with 1..... More


Attached Files

Thumbnail(s)
   
Print this item

  Replace elements of array with elements from another array based on a third array
Posted by: Cola_Reb - May-13-2022, 01:00 PM - Forum: General Coding Help - Replies (6)

I hope I can explain my current problem in a understandable way (besides from the possible confusing title Rolleyes):

I need to replace some el..... More

Print this item

  Your p“Timeout !!!!” when I enter a known good IP address when running port scanner
Posted by: James2000k - May-13-2022, 08:55 AM - Forum: Networking - Replies (8)

Can anyone offer some assistance because i am working on this port scanner and it seems to run fine but when i sent it to another person they said the..... More

Print this item

  Tetris samples for teaching Python
Posted by: relent95 - May-13-2022, 07:40 AM - Forum: Code sharing - No Replies

I created two tetris implementations to teach Python to my sons.
Any suggestions for simplifying the logic or improving the readability are welcome...... More

Print this item

  [Solved]Help Getting Started on Scene Swapping
Posted by: Extra - May-12-2022, 11:26 PM - Forum: GUI - Replies (10)

Hello,

I have yet another question, but this one entails replacing the current screen/window with a new one when it is called.

I'm trying to ha..... More

Print this item

  Python to exe-Does it do Pip installs?
Posted by: Extra - May-12-2022, 08:12 PM - Forum: News and Discussions - Replies (1)

Hello,

I'm have a python script that currently uses PyQt5 for the GUI, and I'm wondering if I wanted to make it an exe file down the road, will it ..... More

Print this item

  [Solved]Help Passing Variables
Posted by: Extra - May-12-2022, 08:01 PM - Forum: GUI - Replies (4)

Hello,

I'm wondering how I can pass my userInputName and userInputPassword to my validate function.
I thought this was the correct way of doing ..... More

Print this item

  Split excel file and write output at specific row and set sheet position
Posted by: DSCA - May-12-2022, 07:29 PM - Forum: Data Science - No Replies

Hi All,

I have a Masterfile which I split with the help of codes. Below is the code I use for splitting the excel file based on a column.

[pyth..... More

Print this item

  Save settings
Posted by: frohr - May-12-2022, 06:50 PM - Forum: General Coding Help - Replies (3)

Hi,
I want to ask you how to save options. I have main window with charts and calculations. When I click Settings button, second window is open.

T..... More

Print this item

  Converting '1a2b3c' string to Dictionary
Posted by: PythonNoobLvl1 - May-12-2022, 05:39 PM - Forum: General Coding Help - Replies (6)

Hello, I'm currently in school for computer science, graduating next year and I've been browsing some of the leetcode problems. I was a bit dishearten..... More

Print this item

  force a program to exit ?
Posted by: Armandito - May-12-2022, 12:22 PM - Forum: General Coding Help - Replies (3)

Hello everyone!

Here is my problem: I use a Python program that communicates with a device. Sometimes (for no apparent reason) it loses connection w..... More

Print this item

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

User Panel Messages

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