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,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 44 Guest(s)
Bing, Google, Mojeek

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:07 PM
» Replies: 2
» Views: 93
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 60
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 59
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 315
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 45
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 73
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 265
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 142
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 239
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 423

 
  VSCode Setup and configuring to run with Python
Posted by: apollo - Jan-04-2021, 09:48 AM - Forum: General Coding Help - Replies (2)

Dear Python-Experts,

hope youre well and all goes all right: i wish you a happy new year.


at the moment i am seeting up a VSCode on a win10 ..... More

Print this item

  Using range over slicing when looping through lists
Posted by: GJG - Jan-04-2021, 09:36 AM - Forum: Code Review - Replies (3)

Hi Folks! Beginner question. Which one of these two are less processor costly?
[python]
my_list = [2, 3, 11, 5, 1, 9, 7, 15, 13]
largest = my_list[..... More

Print this item

Question Which is a great library for making a pixel art software
Posted by: Leo_Red - Jan-04-2021, 07:55 AM - Forum: General Coding Help - Replies (3)

Hi,I am making a pixel art editor for learning python and also as a hobby project. But, I am stuck on which lib to chose. I tried PIL, but it not work..... More

Print this item

  syntax error
Posted by: CompleteNewb - Jan-03-2021, 09:24 PM - Forum: General Coding Help - Replies (8)

Hello,

I'm just starting coding and I had a syntax error that I don't understand. I'm copying from a book and I checked the code in different code ..... More

Print this item

  Architecting Efficient Plot
Posted by: blipton - Jan-03-2021, 07:44 PM - Forum: Data Science - No Replies

Trying to conceptually think of good way to update a matplotlib plot with data that comes from the serial port.

I have one (multi)process that i..... More

Print this item

  Problem with one set of data
Posted by: alloydog - Jan-03-2021, 07:37 PM - Forum: General Coding Help - Replies (4)

I wrote a script to convert the measured resistance of the Betatherm thermistor 30K6A1 to temperature. I initially thought I had done somethin..... More

Print this item

  Python Playground question
Posted by: Euler314 - Jan-03-2021, 07:35 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm trying to teach myself Python so I bought two books so far: "Python Crash Course" and "Python Playground". I'm working through "Python..... More

Print this item

  selflearning AI (seed AI)?
Posted by: Efe454 - Jan-03-2021, 07:24 PM - Forum: General Coding Help - Replies (1)

Can someone explain Me how to code an selflearning AI? With an example please.

Print this item

  Help with socket library for a port scanner?
Posted by: xanderv - Jan-03-2021, 05:40 PM - Forum: Networking - Replies (1)

I’m following along with the book “Violent Python, a Cookbook for hackers, forensic analysts, pentesters, and security engineers”. It has several tuto..... More

Print this item

  NameError: name 'self' is not defined
Posted by: hobbyist - Jan-03-2021, 05:31 PM - Forum: GUI - Replies (30)

This is the code for opening .tif on a PyQT window:

[python]import sys
from PyQt5.QtWidgets import QApplication, QMainWindow

app = QApplication..... More

Print this item

  Copying column values up based on other column values
Posted by: codelines - Jan-03-2021, 04:27 PM - Forum: General Coding Help - Replies (1)

Hello,

I have this dataframe

[python]
import numpy as np
import pandas as pd
from numpy.random import randn
df=pd.DataFrame(randn(5,4),['A',..... More

Print this item

  HomeWork Python - Drawing window with text center.
Posted by: Voraman - Jan-03-2021, 03:10 PM - Forum: Homework - Replies (8)

Thank for accepted me in this Forum .
Hi everyone can u help me with this Python code .
the purpose of this exercise we have to drawing a window wi..... More

Print this item

  where do you keep (or manage) your coding
Posted by: 3Pinter - Jan-03-2021, 10:55 AM - Forum: Bar - Replies (1)

Hi guys,

So I was wondering how do you guys code and perhaps more like: how do you manage your coding?

So a bit about my myself
I'm not ..... More

Print this item

  Plot data from CSV
Posted by: allen04 - Jan-03-2021, 05:23 AM - Forum: General Coding Help - Replies (2)

Fruit Rate
Apple 4.7
Orange 4.6
Avocado 4.7
Cherry 4.7
Cherry 4.8
Apple 4.4
Banana 4.7
Banana 4.7
Orange 4.7

I have these two columns in ..... More

Print this item

  Object-Oriented Programming in Python Assignment
Posted by: alectheprogrammer - Jan-03-2021, 04:56 AM - Forum: Tutorial Requests and Submissions - No Replies

I made a free, mastery-based assignment on OpenClass on object-oriented programming in Python. The assignment includes conceptual questions and coding..... More

Print this item

  How to apply a class method to an entire dataframe column
Posted by: tirtha9 - Jan-03-2021, 04:25 AM - Forum: General Coding Help - Replies (1)

How can i apply a class method to an entire dataframe?

A minimal code is ..... More

Print this item

  Help moding python script to edit Gcode
Posted by: AntaresSky - Jan-03-2021, 01:37 AM - Forum: General Coding Help - Replies (13)

Hi there!
I'm new to python, haven't done any coding in 20 years. I used to do Basic code for the Basic stamp controller.
Anyways, I have a script t..... More

Print this item

  Questions about installing Pillow
Posted by: Coggleton - Jan-02-2021, 09:32 PM - Forum: General Coding Help - Replies (1)

Operating System: Windows 10
Environment: Command Prompt

Hello, I am working on a project in GIMP that I want to install a photo editing python sc..... More

Print this item

  Cannot make 'pandas' module to work...
Posted by: ellie145 - Jan-02-2021, 07:59 PM - Forum: General Coding Help - Replies (2)

Happy New Year to everyone!

I'm a total noob in python...
I was trying to import the Pandas module and I keep receiving the same error. I was goog..... More

Print this item

Photo Plotting Trig Functions and Help with Streamlining Code
Posted by: Dasiey12 - Jan-02-2021, 07:33 PM - Forum: Code Review - Replies (1)

Hi
I am plotting a unit circle in Matlibplot. I am using a Jupiter Notebook to run the code. I am really looking for a way to shorten the code. I..... More

Print this item

Question Can I configure 'tab' widgets state to 'disabled'?
Posted by: water - Jan-02-2021, 07:09 PM - Forum: GUI - Replies (2)

notebooks = ttk.Notebook(root)
tab_1 = ttk.rame(notebooks)
notebooks.add(tab_1, text = 'tab-1')
Can I configure the 'tab_1' un-s..... More

Print this item

  Decimal Rounding error
Posted by: project_science - Jan-02-2021, 06:46 PM - Forum: General Coding Help - Replies (4)

Hi,

I've got a code written where the purpose is to take a raw price value and apply 10% discount to it. If the user agrees, then a 2nd discount o..... More

Print this item

  Second player on second monitor?
Posted by: michael1789 - Jan-02-2021, 06:36 PM - Forum: Game Development - Replies (2)

What's the logical way to get a second play window on an additional laptop monitor? I don't know how blue tooth works, a cord would be fine, as would..... More

Print this item

  Getting started in functional programming
Posted by: swisscheese - Jan-02-2021, 06:18 PM - Forum: Tutorial Requests and Submissions - No Replies

I posted a video with a simple tip for getting started in functional programming.
Comments are welcome.
https://www.youtube.com/watch?v=K9pCZLpFRbs

Print this item

  Kalman Filter for predicting randomized chaos in Jupyter Labs
Posted by: hbyte - Jan-02-2021, 05:07 PM - Forum: Homework - No Replies

As a start to this forum Ive included this wonderful peice of Vanilla code - The Kalman Filter
I downloaded from github this wonderfully elega..... More

Print this item

Question How to configure scrollbar dimension?
Posted by: water - Jan-02-2021, 03:39 PM - Forum: GUI - Replies (6)

How to configure scrollbar dimension like below, and let it move scrollbar's block automate with associated object current visible position percentage..... More

Print this item

  Adanced Image Analysis with Python for reflecting surfaces
Posted by: domonkasshu - Jan-02-2021, 02:13 PM - Forum: General Coding Help - Replies (3)

Hello Everyone
My name is Andrea, a computer engineer graduated many years ago with major in automation. After 5 years as automation software coder I..... More

Print this item

  Stop/continue While loop block
Posted by: Moris526 - Jan-02-2021, 09:54 AM - Forum: General Coding Help - Replies (68)

Hi.

I have this situation


I have a While loop reading serial and polling data from a board

[python]While True:

if (ser.inWaiting() ..... More

Print this item

  please help i cant print "We've been halfway through"
Posted by: Kakha - Jan-02-2021, 07:57 AM - Forum: General Coding Help - Replies (7)

[python]
g = 0
m = 300
while g <= m :
if g!=m :
d=m-g
elif g==m/2:
print("We've been halfway through")
print(f"Distance t..... More

Print this item

  What is the difference between a generator and a list comprehension?
Posted by: Pedroski55 - Jan-02-2021, 01:00 AM - Forum: General Coding Help - Replies (2)

I'm new to generators. Reuven Lerner describes them as "lazy lists"

This one assigns the letters of a string to alist a prescribed number of times...... More

Print this item

  how to create pythonic codes including for loop and if statement?
Posted by: aupres - Jan-02-2021, 12:46 AM - Forum: General Coding Help - Replies (1)

I am a newbie on python coding. Below are my legacy python codes.

[python]
for i, df_list in enumerate(df_list_of_list):
for j, df in enumera..... More

Print this item

  Matching multiple conditions and mapping multiple results, between two dataframes
Posted by: daveyg33 - Jan-01-2021, 10:14 PM - Forum: Data Science - Replies (2)

I'm very new to python and really don't know where to start doing the following:
I have two dataframes, df1 and df2.

[python]df1
fruit id ..... More

Print this item

  adding backgroung image
Posted by: ebolisa - Jan-01-2021, 09:18 PM - Forum: GUI - Replies (4)

Hi,

The code below brings up 2 windows, Login and IOT.

I'd like to add a background image in the Login window but, for some reasons, the image is a..... More

Print this item

  Socket out of LAN
Posted by: Mathisdlg - Jan-01-2021, 06:52 PM - Forum: Networking - Replies (1)

Hello world,
I want to do a software of communication with socket but I want to communicate out of my LAN but I don't know how I can do it Wall ..... More

Print this item

  why doesn't python look in two directions
Posted by: Kakha - Jan-01-2021, 06:17 PM - Forum: General Coding Help - Replies (21)

[b]this stupid code is created on purpose, the interpreter reacts to the truth and executes it, but if the truth is in two directions, it chooses a sh..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 579005
  Tutorial Requ... 510781
  Web Scraping ... 442017
  Newbie with P... 386056
  New Users Int... 377378
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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