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,407
» Latest member: Stephenchers
» Forum threads: 38,827
» Forum posts: 176,042

Full Statistics

Online Users
There are currently 38 online users.
» 1 Member(s) | 33 Guest(s)
Bing, Google, Applebot, snippsat

Latest Threads
Earnestinome
Forum: General Coding Help
Last Post: Stephenchers
16 minutes ago
» Replies: 0
» Views: 12
Dichaelmag
Forum: General Coding Help
Last Post: TimsothyKat
1 hour ago
» Replies: 0
» Views: 14
Update Image on Button Cl...
Forum: GUI
Last Post: LovelyImgs
1 hour ago
» Replies: 3
» Views: 3,156
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
4 hours ago
» Replies: 2
» Views: 176
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
5 hours ago
» Replies: 29
» Views: 15,705
Create dataframe from the...
Forum: Data Science
Last Post: JassicaElla60
5 hours ago
» Replies: 8
» Views: 3,662
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 2
» Views: 179
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 11:47 AM
» Replies: 2
» Views: 145
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,192
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 219

 
  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

  Writing to file ends incorrectly
Posted by: project_science - Jan-01-2021, 04:41 PM - Forum: General Coding Help - Replies (4)

Hi,

An external txt file has 2 numbers in it (default). I'm asking a user to input 2 new numbers in my script. These then get written to the text..... More

Print this item

  help with selenium
Posted by: ZinkQ - Jan-01-2021, 03:41 PM - Forum: Web Scraping & Web Development - Replies (2)

why it doesnt work?

my code:

from selenium import webdriver
driver = webdriver.Chrome()
driver.get("http://www.google.com")
..... More

Print this item

  start to learn Python
Posted by: Berliner - Jan-01-2021, 03:21 PM - Forum: News and Discussions - Replies (11)

Hi all, I would like to start to learn Python.
I kindly ask you to give me some advices, please:

- Good tutorial for the beginners;
- Good and fr..... More

Print this item

  Assign a value if datetime is in between a particular time limit
Posted by: klllmmm - Jan-01-2021, 08:08 AM - Forum: General Coding Help - Replies (2)

Hi there,

I'm trying to assign a value to a dataframe if my DateTime column time value is belonging to a particular time frame.

I tried to use;..... More

Print this item

  Converting .txt to .csv file
Posted by: SunWers - Jan-01-2021, 06:26 AM - Forum: General Coding Help - Replies (21)

Hi,

I'm needing a little help getting a text/tab delimited file imported in with python. I think I'm missing how to import the columns... This is..... More

Print this item

  Multi-class iterator
Posted by: Pedroski55 - Jan-01-2021, 02:47 AM - Forum: General Coding Help - Replies (2)

Hi and Happy New Year!

I am studying Reuven Lerner's book Python Workout, now at chapter 10, Iterators and Generators.

I don't know about classe..... More

Print this item

  new line character
Posted by: project_science - Jan-01-2021, 02:31 AM - Forum: General Coding Help - Replies (3)

Hi,

I've got a simple code which should open, read, write, and append code. On the 3rd block of code, it returns the text from the 2nd block on th..... More

Print this item

  Distributing Python/Pygame code with CX_Freeze
Posted by: jfng75 - Dec-31-2020, 08:44 PM - Forum: Game Development - Replies (2)

Hi,
I'm trying to use CX_Freeze for distributing a Python app developed with Pygame.
Using *python setup.py bdist_dmg* for Mac, the resulting app is..... More

Print this item

  [HELP] string into binary
Posted by: ZeroPy - Dec-31-2020, 03:46 PM - Forum: General Coding Help - Replies (2)

hello everyone,
after trying for hours and not finding a solution, i came here to ask for help.

i have a user input a string, for example : [color..... More

Print this item

  can I set scan interval for scapy?
Posted by: korenron - Dec-31-2020, 01:43 PM - Forum: Networking - No Replies

I have found a simple code that sacn my environment
work good

but I want to set my own time it will start the scan
and also to now on which cha..... More

Print this item

  new in this area
Posted by: Ana_junior - Dec-31-2020, 11:28 AM - Forum: Data Science - Replies (2)

Hello I am pretty new in this type of data anlysis so I am learning and tsting myself.

I have received thsi text in .pre format with precipitaions...... More

Print this item

  [NEW TO PYTHON] errno 2 "no such file or directory"
Posted by: arcaic_ - Dec-30-2020, 11:48 PM - Forum: GUI - Replies (2)

Hi, sorry, it turns out that the error was caused by the compiler I was using at the time. I tried it on a separate compiler and it worked fine. Thank..... More

Print this item

  Adafruits Neotrellis interrupt with RAsp and Python
Posted by: Moris526 - Dec-30-2020, 08:11 PM - Forum: General Coding Help - Replies (5)

Hi.

Im new to python and electronics. Im trying to use interrupt on a NEotrellis Board. It did worked with Arduino (with the sample code from Adafr..... More

Print this item

  counting vowels in a string
Posted by: project_science - Dec-30-2020, 05:18 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm moving from a C background to python. I'm trying to count the number of vowels in a string. I've put the vowels in a list, and I'm trying..... More

Print this item

  Fork not supported for subinterpreters (help)
Posted by: Fandangos - Dec-30-2020, 04:49 PM - Forum: General Coding Help - Replies (4)

Hi,

I have run out of people to ask this so now I'm here :)
I'm not familiar with python, all I ever worked with is C++.

I'm working on a addo..... More

Print this item

  Formatting issues?
Posted by: Mark17 - Dec-30-2020, 04:03 PM - Forum: General Coding Help - Replies (1)

Here's some code:
[Python]
format_mapping2 = {'ES_Cum_%ROI':'{:.2%}','Port_Cum_%ROI':'{:.2%}','Port_Marg_Tot':'{:.2f}'}
for key, value in format_ma..... More

Print this item

  Json File more pages #pandas #dataframe
Posted by: nio74maz - Dec-30-2020, 05:32 AM - Forum: General Coding Help - No Replies

good day I have a problem, I have extract from rest api woocomerce all products in one file json, but this file have 4 pages with 100 row for page. I ..... More

Print this item

  New to Pandas. I need help fixing a TypeError
Posted by: kramon19 - Dec-30-2020, 03:53 AM - Forum: Data Science - Replies (1)

I loaded a CSV file called 'IMDb movies.csv' from kaggle. Here is the link to this file https://www.kaggle.com/stefanoleone992/i...ve-dataset...... More

Print this item

  Can I modify part of 'Values' value of Treeview item?
Posted by: water - Dec-29-2020, 09:35 PM - Forum: GUI - No Replies

test_treeview.insert('', 'end', iid = 'i001', value = ['column-1', 'column-2', 'column-3'])
test_treeview.item('i001')['values']
[o..... More

Print this item

  Stumped by my own code (ratio & epoch-time calculation).
Posted by: MvGulik - Dec-29-2020, 07:50 PM - Forum: General Coding Help - Replies (2)

How to explain this ...

In a nutshell.
I have done something weird in my code/calculations. And now, a few days later, I can't figure out why its ..... More

Print this item

  Check for Caps Lock
Posted by: ebolisa - Dec-29-2020, 07:49 PM - Forum: GUI - Replies (1)

Hi,

In a class I use the code below to print in the console if the Caps Lock is on or not.
Instead of printing, I'd like to compare the [b]e.state..... More

Print this item

  Trying to make random image loop in Tk window using python
Posted by: Jediguy18 - Dec-29-2020, 07:45 PM - Forum: GUI - Replies (1)

I cant seem to find the right way to make a random image appear in a window (im using tk for the window), so every second a new random image from a fo..... More

Print this item

  Difference between math.pow and **
Posted by: alloydog - Dec-29-2020, 07:37 PM - Forum: General Coding Help - Replies (5)

I'm trying to write a script which uses the Steinhart-Hart equation to calculate the temperature of a thermistor from its measured resistance.

The ..... More

Print this item

  Help with Creating a Script for Automating Reports
Posted by: SunWers - Dec-29-2020, 06:28 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm new to Phython and I'm working on trying to automate some reports that I've done manually for years. I work for a manufacturing facility t..... More

Print this item

  Hiring python dev
Posted by: sizzle - Dec-29-2020, 06:28 PM - Forum: Jobs - Replies (4)

Hiring someone to make me an email bomber that bypasses spam filter.
Will pay well,
If serious contact my telegram - Sizzle
Discord - Sizzle#5184..... More

Print this item

  Iterating over a dictionary in a for loop - checking code has worked
Posted by: sallyjc81 - Dec-29-2020, 03:55 PM - Forum: General Coding Help - Replies (1)

Hello, Smile

I am using the rasterio library to perform some a pre-processing corrections (top of atmosphere reflectance(TOA) conversion) to a..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Earnestinome 16 minutes ago Stephenchers Stephenchers General Codin...
  Dichaelmag 1 hour ago TimsothyKat TimsothyKat General Codin...
  Update Image on Button Cl... 1 hour ago the_muffin_man LovelyImgs GUI
  a function to watch files 4 hours ago Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... 5 hours ago Pavel_47 OtiliaGen General Codin...
  Create dataframe from the... 5 hours ago Calab JassicaElla60 Data Science
  Check if running from she... Yesterday, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help Yesterday, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
Most views
  The best Prog... 580496
  Tutorial Requ... 520262
  Web Scraping ... 442809
  Newbie with P... 387027
  New Users Int... 386885
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
Stephenchers Today
TimsothyKat Today
LovelyImgs Today
LewisByday Today
JassicaElla60 Today

User Panel Messages

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