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,398
» Latest member: luisfrancesz3208
» Forum threads: 38,824
» Forum posts: 176,027

Full Statistics

Online Users
There are currently 34 online users.
» 2 Member(s) | 26 Guest(s)
Bing, Google, Mojeek, Apple, Internet Archive, luisfrancesz3208, Pedroski55

Latest Threads
Погрузитесь в ясность аза...
Forum: General Coding Help
Last Post: luisfrancesz3208
Less than 1 minute ago
» Replies: 0
» Views: 2
Opencv findContours Q
Forum: General Coding Help
Last Post: jogl
1 hour ago
» Replies: 0
» Views: 24
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,586
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 174
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,593
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 141
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 288
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,105
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,954
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 174

 
Question Special Characters read-write
Posted by: Prisonfeed - Sep-17-2023, 08:07 PM - Forum: General Coding Help - Replies (1)

I have a directory filled with .gz text archives. To scan these archives, I use the following python code:

[python]
with gzip.open(logDir+"\\"..... More

Print this item

  for loops break when I call the list I'm looping through
Posted by: Radical - Sep-17-2023, 04:40 PM - Forum: General Coding Help - Replies (4)

I was trying out the for loops in Python, and I don't fully understand why it breaks.

When I type:

[python]
for i in catNames:
print(catNames[i]..... More

Print this item

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Погрузитесь в ясность аза... Less than 1 minute ago luisfrancesz3208 luisfrancesz3208 General Codin...
  Opencv findContours Q 1 hour ago jogl jogl General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
Most views
  The best Prog... 580410
  Tutorial Requ... 519505
  Web Scraping ... 442785
  Newbie with P... 386984
  New Users Int... 386502
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
luisfrancesz3208 Today
MaxTranslate Yesterday
pizofreude Yesterday
RockHound_Z12 Yesterday
braillescribe 12-28

User Panel Messages

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