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,241
» Latest member: ColorTig
» Forum threads: 38,777
» Forum posts: 175,795

Full Statistics

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

Latest Threads
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
7 hours ago
» Replies: 1
» Views: 42
Data Science
Forum: Data Science
Last Post: mamta25
7 hours ago
» Replies: 3
» Views: 2,576
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
Yesterday, 10:15 PM
» Replies: 1
» Views: 102
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 149
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 133
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 130
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,340
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,382
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,584
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 211

 
  dataframe logic issues
Posted by: mbrown009 - Sep-13-2023, 07:44 PM - Forum: Data Science - Replies (5)

It is setting all values for box4 to the combination of the two values so of the else. What am I doing wrong? Do I have to convert those fields to num..... More

Print this item

  Jupyter notebooks, jupyter kernels, virtual environment created in Anaconda...
Posted by: bytecrunch - Sep-13-2023, 12:35 PM - Forum: Data Science - Replies (8)

Hello Forum,

I think I am clear on what a virtual environment is: it is a "folder" that contains specific Python libraries/modules and a specific P..... More

Print this item

  UserWarning: Could not infer format
Posted by: NewBiee - Sep-13-2023, 07:40 AM - Forum: Data Science - Replies (3)

Hi,

I have this code:
[python]def get_rework_flags(logs, clean_df):
""" Gets the flags used for rework """
logger = logs['logger']
..... More

Print this item

  Anyone registered for PyWeek?
Posted by: ah3 - Sep-12-2023, 12:02 PM - Forum: Game Development - Replies (1)

Did anyone register for PyWeek? I just did, I'm excited and kinda nervous. It's my first ever game jam!

Print this item

  ValueError: Unknown label type: 'continuous-multioutput'
Posted by: hobbyist - Sep-12-2023, 09:07 AM - Forum: General Coding Help - Replies (7)

I am running this code: https://github.com/dyt08/diabetes-predic...etes.ipynb on google colab.

and on this part:

[python]X_SMOTE, y_..... More

Print this item

  pdf question
Posted by: DPaul - Sep-12-2023, 08:46 AM - Forum: Bar - Replies (7)

Hi,
When documents are scanned, using a "bulk" scanner,
the result is either a bunch of tifs or pngs.
Those image formats are percieved as being "f..... More

Print this item

  Pytest Installed, but VS Code Won’t Access Pytest
Posted by: AstralWeeks - Sep-12-2023, 05:15 AM - Forum: General Coding Help - Replies (9)

Hi,

Sorry, I understand questions about installing packages and problems with path directories are common, but I've tried everything and really nee..... More

Print this item

  Program to find Mode of a list
Posted by: PythonBoy - Sep-11-2023, 01:57 PM - Forum: General Coding Help - Replies (6)

I am currently making a program to find the Mode of a list by count() function.

[python]
Input =input("Please enter the data: ")
Data = Input.spl..... More

Print this item

  Problem passing argument to functionin inTkinter frame
Posted by: ericwm7248 - Sep-11-2023, 12:09 PM - Forum: GUI - Replies (3)

This is the method I have inside a Tkinter frame which I am trying to call using key_press() but get the error.


ERROR MESSAGE
[error]Traceback (..... More

Print this item

  read active document name - other than from the window title
Posted by: ineuw - Sep-11-2023, 09:06 AM - Forum: General Coding Help - No Replies

This simple date time & filename script is activated from Autokey and works well, except where I need it most - in Geany. In a GTK based theme, regard..... More

Print this item

  Python code for Longest Common Subsequence
Posted by: Bolt - Sep-11-2023, 12:14 AM - Forum: General Coding Help - Replies (3)

I am looking for a Python code to find the longest common subsequence of two strings. I found a blog post that describes the problem and provides a so..... More

Print this item

  run a string or str as a statement
Posted by: Skaperen - Sep-10-2023, 10:13 PM - Forum: News and Discussions - Replies (3)

i would like to be able to run a string (or at least just a str) as a statement in the current context (for example, its local variables being the sam..... More

Print this item

  android e python fece recognition
Posted by: Fabiola - Sep-10-2023, 05:30 PM - Forum: General Coding Help - Replies (1)

Hi, I'm making an app in Android Studio that communicates with Python via socket and I have to implement the recognition. I did it this way but when I..... More

Print this item

  Extract PDF Attachment from Gmail
Posted by: jstaffon - Sep-10-2023, 01:55 PM - Forum: General Coding Help - No Replies

I would like to have a python script open my Gmail inbox, read each unread email, extract the PDF attachments if they exist and save the attachment. M..... More

Print this item

  Error is finding mean of a list
Posted by: PythonBoy - Sep-10-2023, 07:26 AM - Forum: General Coding Help - Replies (4)

So I was making a program to find the mean of a list entered by the user
My code:
[python]
Input =input("Please enter the data: ")
Data = Input.sp..... More

Print this item

  Trouble with Tkinter labels
Posted by: Raysz - Sep-09-2023, 11:18 PM - Forum: GUI - Replies (6)

So I am new at Tkinter

So I'm trying to create what I thought was a simple program
I made this program in a standard Python script
I thought all ..... More

Print this item

  Taking screenshot
Posted by: ConsistentlyInconsistent - Sep-09-2023, 10:32 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I'm very very new to python but I've been building my own automated bot for a html game.
There's part of the game that you need to complete an..... More

Print this item

  Using pyodbc&pandas to load a Table data to df
Posted by: tester_V - Sep-09-2023, 05:12 AM - Forum: General Coding Help - Replies (3)

Greetings!
I'm connecting to a DB and can get all the tables from it. No errors
I wanted to find a table named "ToolHistory" and later some other ta..... More

Print this item

  phase portrait - Nonlinear damped pendulum
Posted by: Giovanni_62 - Sep-08-2023, 07:42 PM - Forum: Data Science - Replies (1)

[python]
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import solve_ivp

# Parameters
g = 9.81 # Acceleration du..... More

Print this item

  [PySide / PyQt] Offset two images with keyboard increments
Posted by: carecavoador - Sep-08-2023, 06:01 PM - Forum: GUI - Replies (1)

Hello fellow Pythonistas.

I'm working on a little side project. The goai is: I need to load two images, then invert the pixels of the second image ..... More


Attached Files

Thumbnail(s)
       

.py   viewer_min_example.py (Size: 2.16 KB / Downloads: 242)
Print this item

  how do you style data frame that has empty rows.
Posted by: gsaray101 - Sep-08-2023, 05:17 PM - Forum: General Coding Help - No Replies

I have this data frame df:


I need to style this data frame based on Percent_Utilized column. I have this so far:

I have this data frame:

df..... More

Print this item

  Error Help
Posted by: Tennisbuck - Sep-08-2023, 12:29 PM - Forum: General Coding Help - Replies (3)

Hello Board,

I'm new to python and I've recieved the error message below. Does anyone know how this can be fixed?


Attached Files

Thumbnail(s)
   
Print this item

  How do I handle escape character in parameter arguments in Python?
Posted by: JKR - Sep-08-2023, 10:44 AM - Forum: General Coding Help - Replies (6)

Hi,
I have the issue that Python change the string value of my parameter arguments.

Here are my skript parameter:

"C:\Ordner 1\" "D:\test 2\"..... More

Print this item

Bug Program to check whether a number is palindrome or not
Posted by: PythonBoy - Sep-07-2023, 12:01 PM - Forum: Homework - Replies (18)

A palindrome number is a number which if written backwards also, the number will look the same
Eg: 112211, 121, 898

I have a homework to write a p..... More

Print this item

  Problem with code / audio is playing randomly, not matching csv requirements
Posted by: Daniel_kcr - Sep-07-2023, 11:12 AM - Forum: General Coding Help - Replies (2)

Hello. Greeting to you all. I'm totally new, today i wrote my very first bunch of code. I got a problem with sounds within my project. As i managed to..... More


Attached Files

.py   app.py (Size: 1.82 KB / Downloads: 255)
.csv   dane.csv (Size: 725 bytes / Downloads: 246)
Print this item

  Noob question
Posted by: BSDevo - Sep-07-2023, 05:19 AM - Forum: Data Science - Replies (4)

Hi, im new to Pandas, Python and all this awesomnes !

I learn hard way ...

I have few things im confused about.

Im trying to sort and visuali..... More

Print this item

  Fix pandas copy/slice warning.
Posted by: deanhystad - Sep-07-2023, 04:16 AM - Forum: General Coding Help - Replies (3)

In another thread I posted this code:
[python]import pandas as pd
from string import ascii_letters as letters
from random import choice, choices, r..... More

Print this item

  Movie Search
Posted by: menator01 - Sep-07-2023, 03:02 AM - Forum: Code sharing - Replies (4)

I've finished the movie search script. Still a little ruff around the edges but, works. I had trouble placing text in the textbox so I went with using..... More

Print this item

  [solved] duplication in pandas
Posted by: BSDevo - Sep-06-2023, 09:30 PM - Forum: Data Science - No Replies

Missed some white space again.

Hi, im new to Python and Pandas.
Im trying to drop duplicates from my dataframe but something is wrong.
Im using Strea..... More

Print this item

  While Loop Problem
Posted by: Benno2805 - Sep-06-2023, 03:58 PM - Forum: General Coding Help - Replies (1)

Hi,
i'm very very new to python, but familiar with vba, so understand how basics work and in this case a loop.

I have the following code:

[pyth..... More

Print this item

  Help with my code
Posted by: bp12 - Sep-06-2023, 02:42 PM - Forum: Homework - Replies (7)

Hi all,

I have been working on my code but I am a novice and I am still trying to get my head around it all. I can't get the output I am looking for...... More


Attached Files

Thumbnail(s)
           
Print this item

  IndexError: index 10 is out of bounds for axis 0 with size 10
Posted by: Mehboob - Sep-06-2023, 07:17 AM - Forum: General Coding Help - Replies (11)

i am trying to run a Github repo for voltage control of various distribution system like IEEE10 bus, 23 bus and 30 bus system. When main files calls r..... More

Print this item

  combobox_callback(choice choice part of openfile name (kind of dependency)
Posted by: janeik - Sep-05-2023, 07:00 PM - Forum: General Coding Help - Replies (9)

hello.
Goal is: clicking i.e: Akershus in a not placed colmbobox, fills another combo using content of a placed combobox.
(kind of dependency)
Tryi..... More

Print this item

  Use of PIL.Image
Posted by: nafshar - Sep-05-2023, 06:55 PM - Forum: General Coding Help - Replies (12)

The following code generates an error which I am not understanding:

[code]
from fastapi import FastAPI, File, UploadFile
import uvicorn
import n..... More

Print this item

  String to List question help
Posted by: James_Thomas - Sep-05-2023, 03:52 PM - Forum: General Coding Help - Replies (6)

Hello, I have been working with PyVISA doing S_param measurements. It is extremely convinent on my set up to just pull SNP (Touchstone files) because ..... More


Attached Files

Thumbnail(s)
       
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [split] print two differe... 7 hours ago Reema Gribouillis General Codin...
  Data Science 7 hours ago Oshadha mamta25 Data Science
  [Tkinter] I’m building a ... Yesterday, 22:15 tsgiannis woooee GUI
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [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
Most views
  The best Prog... 578731
  Tutorial Requ... 509431
  Web Scraping ... 441870
  Newbie with P... 385830
  New Users Int... 375340
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 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ColorTig Today
AcoolPurpleOne1863 Today
racingsubby Today
Reema Today
lary_p Yesterday

User Panel Messages

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