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: Lenowell
» Forum threads: 38,720
» Forum posts: 175,500

Full Statistics

Online Users
There are currently 55 online users.
» 0 Member(s) | 48 Guest(s)
Bing, Applebot, AOL, Mojeek, AOL

Latest Threads
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
3 hours ago
» Replies: 1
» Views: 342
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,340
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,459
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 285
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 92
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,806
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,056
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 746
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-14-2025, 11:25 AM
» Replies: 7
» Views: 2,109
Python Installation issue
Forum: News and Discussions
Last Post: Dev
Sep-14-2025, 11:16 AM
» Replies: 4
» Views: 15,983

 
Question Common understanding of output processing with conditional statement
Posted by: neail - Sep-17-2023, 06:24 AM - Forum: General Coding Help - Replies (6)

Hello,

Can anyone please explain why the output calls the Evaluation statement before printing the series?

And what is the process to print the ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Installation
Posted by: tultalk - Sep-16-2023, 10:20 PM - Forum: General Coding Help - Replies (1)

Not sure where to post!!

Error msg:

Message:
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve..... More

Print this item

  Help creating shell scrip for python file
Posted by: marciokoko - Sep-16-2023, 04:18 PM - Forum: General Coding Help - Replies (10)

Hi guys,

So Im reading through this git (https://github.com/cubapp/RasPi-EnviropH...ree/master) and the author writes:

[quote]I call..... More

Print this item

  Yet another unique identifier generator
Posted by: Gribouillis - Sep-16-2023, 08:14 AM - Forum: Code sharing - Replies (3)

This small module generates unique ever 11 letters identifiers by converting the number of nanoseconds since 1970 to a string. I know there are many w..... More

Print this item

  Trying to get counts/sum/percentages from pandas similar to pivot table
Posted by: cubangt - Sep-15-2023, 02:41 PM - Forum: General Coding Help - Replies (6)

I am restructuring this question as i have moved away from trying the JSON file since we dont have a server to host this page, and more trouble than i..... More

Print this item

  Unchangeable variables in a class?
Posted by: Calab - Sep-15-2023, 02:27 PM - Forum: General Coding Help - Replies (12)

I want a class that will accept a value, and provide some other values based on calculations from the original value. I do not want these calculated v..... More

Print this item

  Making tetrominos
Posted by: ragoo - Sep-15-2023, 10:34 AM - Forum: Game Development - Replies (11)

Hi. I don't think this is really a game development problem, it's more of a design problem best I can tell.

I've written a base Tetromino class that ..... More

Print this item

  QTreeView, StyleSheet resizes last column
Posted by: malonn - Sep-15-2023, 09:44 AM - Forum: GUI - Replies (2)

I am using a QTreeView with a StyleSheet set to it. This tree has checkboxes, and the style replaces the image for the empty, checke..... More

Print this item

  Pythonic from a C++ perspective
Posted by: PyDan - Sep-15-2023, 12:45 AM - Forum: General Coding Help - Replies (2)

In C++, entSel would look like

int acedEntSel(const ACHAR * str, ads_name entres, ads_point ptres );

where entres and ptres are out parameters, th..... More

Print this item

  Class member become static
Posted by: Quasar999 - Sep-14-2023, 10:17 PM - Forum: General Coding Help - Replies (1)

In the following code data must be an non static attribute of the class Node:

[python]class Node:
total = 0
def __init__(self,parent,data):
..... More

Print this item

  C++ programmer confused about why Python isn't working the way I intend
Posted by: Radical - Sep-14-2023, 04:53 PM - Forum: General Coding Help - Replies (2)

So I just started learning Python a few days ago and have written a very simple block of code, but it doesn't do what I think it would. Can you please..... More

Print this item

Music Help with: Audiobook Library/Copier Project
Posted by: eleven43 - Sep-14-2023, 04:17 PM - Forum: General Coding Help - No Replies

Hello pythons!

Truth: Its my first little coding project. Nothing fancy, just for private use. I went through hours and hours of trial and error wi..... More

Print this item

  more pdf questions
Posted by: DPaul - Sep-14-2023, 08:54 AM - Forum: Bar - No Replies

Hi,
in my efforts to save server space, I have a "how to" problem.
Using Fitz (pyMuPdf), I can : open a pdf and find the page I need (page_nr)
[pyt..... More

Print this item

  How to import in photos
Posted by: CoderX - Sep-14-2023, 03:25 AM - Forum: Homework - Replies (2)

I have a project coming up in my Physics class where we are currently learning the fundamentals of Python. We have learned nested statements, how to s..... More

Print this item

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Another app idea - intera... 3 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 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...
  New to the field 09-14, 08:15 Polybunny Larz60+ News and Disc...
Most views
  The best Prog... 575784
  Tutorial Requ... 497019
  Web Scraping ... 439796
  Newbie with P... 383484
  New Users Int... 365241
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 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday
Williefaree Yesterday
faithsally Yesterday

User Panel Messages

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