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

 
  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

  slicing question
Posted by: DPaul - Dec-29-2020, 03:52 PM - Forum: General Coding Help - Replies (5)

Hi,

I have a slicing question that boils down to this:

def printslice(fname,x):
    print(fname[x])

printslice('Jeremy',0)
The n..... More

Print this item

  Class Stack as Container Class
Posted by: NoobatProgramming - Dec-29-2020, 02:33 PM - Forum: Homework - Replies (5)

I am new to python and have a question regarding stacks as a container class. My class stack looks like this:

[python]class Stack:
def __init..... More

Print this item

  suitable libraries for project
Posted by: dogbural - Dec-29-2020, 12:38 PM - Forum: General Coding Help - No Replies

Hi,

If I would like to create a web page (thru Intranet) to enable staff to select the required labels for respective products. To do that, I will..... More

Print this item

  How to rearrange DataFrame ?
Posted by: plasticpie - Dec-29-2020, 11:59 AM - Forum: Data Science - Replies (1)

Hi everyone, I have following code for extracting DataFrame of countries, months and monthly cases from csv file.ap but I think before I hI need mont..... More

Print this item

  python2 python3 messed up : How to fix ?
Posted by: hary - Dec-29-2020, 09:29 AM - Forum: General Coding Help - Replies (15)

Hi

I'm running Mint20 and am presently trying to follow a specific procedure that, I think, uses python 2 or python3 but is detecting some error in..... More

Print this item

  Exit function in Python on Ubuntu
Posted by: aalish - Dec-29-2020, 06:15 AM - Forum: GUI - Replies (4)

Hey, I am using python3 in Ubuntu20.04 for making GUI of python programs. There are approax 5 functions in otherwords 5 .py files in a complete script..... More

Print this item

  Unable to verify Python files
Posted by: george - Dec-29-2020, 04:42 AM - Forum: News and Discussions - Replies (4)

Hello,

I'm trying to verify the downloaded Python 3.9.1 files before I install them...

I created a new folder and downloaded these two files to ..... More

Print this item

  Use of 'continue' instruction in a 'while' loop
Posted by: GJG - Dec-29-2020, 02:35 AM - Forum: Code Review - Replies (1)

Hi folks! I'm a beginner and at the moment I'm taking a course of loop control in python. One of examples of how to implement continue ..... More

Print this item

  Which Module
Posted by: noxlv - Dec-28-2020, 11:31 PM - Forum: General Coding Help - Replies (1)

I'm trying to extract bulk data from Teradata to a text file
I used teradata and csv module, but there seems to be a limitation for extracting millio..... 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