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,934
» Latest member: alexguemez
» Forum threads: 38,721
» Forum posts: 175,508

Full Statistics

Online Users
There are currently 42 online users.
» 1 Member(s) | 36 Guest(s)
Bing, Google, Mojeek, buran

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
10 hours ago
» Replies: 9
» Views: 2,784
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,205
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 221
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 549
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,708
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 650
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 232
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,180
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,404
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 1,064

 
  Print Error
Posted by: DaveG - Apr-07-2022, 01:08 AM - Forum: General Coding Help - Replies (1)

Could somebody please tell me why the variable 'collapse_steps' is not returned in the variable 'collapse_times'?

[python]collapse_duration = 60.0 ..... More

Print this item

  If then statement help
Posted by: standenman - Apr-06-2022, 10:14 PM - Forum: General Coding Help - Replies (1)

I am new to coding and trying to figure out a way to code in python for a decision tree that is long and complicated. It is the logic behind a webfor..... More

Print this item

  Editing text between two string from different lines
Posted by: Paqqno - Apr-06-2022, 07:10 PM - Forum: General Coding Help - Replies (1)

I want to edit atributte values from xml file and replace every "\n" to "(newline)\n". This is necesary because I need to keep structure of xml file w..... More

Print this item

  code running for more than an hour now, yet didn't get any result, what should I do?
Posted by: aiden - Apr-06-2022, 03:11 PM - Forum: General Coding Help - Replies (2)

I'm trying to implement a triple integral Riemann sum. My single and double integral codes are working. I just added the for k in range (1,l+1):, l = ..... More

Print this item

  KeyError: 0 when trying to dedupe and match records at scale
Posted by: Catalytic - Apr-06-2022, 02:46 PM - Forum: General Coding Help - Replies (1)

I am building code that reads data from excel files into two different pandas dataframes, and performs a fast fuzzy match (fuzzy wuzzy and excel funct..... More

Print this item

  Dynamically setting nested class
Posted by: be_ams - Apr-06-2022, 02:09 PM - Forum: General Coding Help - No Replies

Hi,

I'm using pydantic to do some json validation. The incoming json will be in camel case but to keep my python as pythonic as possible (plus I do..... More

Print this item

  reduce time series based on sum condition
Posted by: amdi40 - Apr-06-2022, 09:09 AM - Forum: Data Science - No Replies

Hello i am trying to reduce the amount of zeros in a timeseries as i only need a period of 24 hour without rain before the condition does not change
..... More

Print this item

  Pick random winners from .csv
Posted by: DellXT - Apr-06-2022, 07:54 AM - Forum: Homework - Replies (6)

Hi. I'm totally new to python. Just trying to find out how to pick few, but not the same (unique by ID) winners from the .csv file. Anyone could help?..... More

Print this item

  How can I display dictionary in a gui window in Python?
Posted by: C0D3R - Apr-06-2022, 07:43 AM - Forum: General Coding Help - Replies (2)

I would recommend to run my code (it uses EasyGui), here in github: https://github.com/UnknownBob123/The-pro...n/TEST1.py
..... More

Print this item

  cs.collections error
Posted by: DaveG - Apr-06-2022, 05:27 AM - Forum: General Coding Help - Replies (7)

Hi
I have this error from the python 2.7 code below. Can someone help please? Much appreciated.

[error]Traceback (most recent call last):
File ..... More

Print this item

  SyntaxError
Posted by: DaveG - Apr-06-2022, 02:16 AM - Forum: General Coding Help - Replies (2)

Hi
I'm getting a syntax error on the print to file. Can someone correct me please?

[error]C:\Python27\python.exe C:/Users/David/PycharmProjects/py..... More

Print this item

  Is Matplotlib.pyplot Loaded
Posted by: DaveG - Apr-06-2022, 01:05 AM - Forum: General Coding Help - Replies (2)

Is there someway I can find out if the module matplotlib.pyplot is available to me while running a Python2.7 script. I have imported matplotlib succes..... More

Print this item

  ElementTree get attribute value part of string
Posted by: paulo79 - Apr-05-2022, 08:09 PM - Forum: General Coding Help - Replies (1)

Hi all,

I have this :

[python]>>> import xml.etree.ElementTree as ET
>>> tree = ET.parse('disks.xml')
>>> root = tree.getroot()
>>> root.tag..... More

Print this item

  Extract parts of a log-file and put it in a dataframe
Posted by: hasiro - Apr-05-2022, 06:58 PM - Forum: General Coding Help - Replies (4)

Hi

I'm a python beginner and would like to extract parts of a log-file and put it in a dataframe.
I tryed something, but it is not what I want.
..... More

Print this item

  Indie Python apps: level editor, animation editor and more
Posted by: KennedyRichard - Apr-05-2022, 03:14 PM - Forum: Game Development - No Replies

Hello,

My name is Kennedy, 31, I just wanted to present the Indie Python project, a personal project including ga..... More

Print this item

  100% free Python Node Editor (visual Python nodes)
Posted by: KennedyRichard - Apr-05-2022, 02:58 PM - Forum: Code sharing - No Replies

A node editor made with Python/pygame

[Image: GFNnyNk.png]

Hello, I'm Kennedy, 31, an indie/hobbyist Python developer. I'm..... More

Print this item

  Knowing User's Connection Type in Django
Posted by: Dexty - Apr-05-2022, 12:47 PM - Forum: Web Scraping & Web Development - Replies (2)

Just wondering if it's possible to get an authenticated user's connection type. For example, are they connected to my Django app through a Wi-Fi (prot..... More

Print this item

  Removing the index column from df
Posted by: bnadir55 - Apr-05-2022, 07:03 AM - Forum: General Coding Help - Replies (7)

Hello all,
I have a data frame that I pull from excel using: df = pd.read_excel(file.xlsx)
when I print results it returns with the index column o..... More

Print this item

  How to move in entries using the arrow keys by applying the bind and focus?
Posted by: pymn - Apr-05-2022, 05:38 AM - Forum: GUI - Replies (4)

I have some entries in tkinter. currently, I need to move the cursor to each entry and click it to select it. I am looking to do this using the arrow ..... More

Print this item

  WHILE Loop - constant variables NOT working with user input boundaries
Posted by: C0D3R - Apr-05-2022, 04:59 AM - Forum: General Coding Help - Replies (4)

This is my full program: https://github.com/UnknownBob123/Card-Catalogue


The only thing that is not working as intended, is the minimum and maxim..... More

Print this item

  Skipping line in text without Restarting Loop
Posted by: IdMineThat - Apr-05-2022, 02:16 AM - Forum: General Coding Help - Replies (4)

I'm breaking apart a text string line by line with a for loop. Is it possible to get to the next line, without starting at the beginning of the loop?
..... More

Print this item

  [variable] is not defined error arises despite variable being defined
Posted by: TheTypicalDoge - Apr-05-2022, 01:58 AM - Forum: General Coding Help - Replies (4)

I've come across an error that I'm not sure how to fix. I keep getting an error that 'currentCalcInput' isn't defined even though it's defined before ..... More

Print this item

  request.get to read large response
Posted by: pythonlearner1 - Apr-05-2022, 12:26 AM - Forum: General Coding Help - Replies (7)

I am trying to use curl to read read large response.
I ran that from command line and redirected to text file and it is 30Mb file

using python I ..... More

Print this item

  How do I run a program without any relationship to it?
Posted by: Pymon - Apr-04-2022, 08:43 PM - Forum: General Coding Help - Replies (3)

I see that there are many ways to launch a program from Python, but I cannot find specifically what I am looking for.

I need to be able to run a ..... More

Print this item

  ROS ROBOTIC MOVEMENT PYTHON
Posted by: frkndmrsln - Apr-04-2022, 09:33 AM - Forum: Homework - No Replies

https://prnt.sc/kQJCg6V_GdRE

Hello everyone. As seen in the image, the Robot will start from the top and follow a certain path. At the end of the m..... More


Attached Files

.zip   movedistance.py.zip (Size: 760 bytes / Downloads: 281)
Print this item

  python ms-paint module
Posted by: kucingkembar - Apr-04-2022, 08:25 AM - Forum: GUI - No Replies

hi, sorry for my bad English,
is there any python module or package that is capable to edit pictures like ms-paint?
the basic features I need are:
-t..... More

Print this item

  select Eof extension files based on text list of filenames with if condition
Posted by: RolanRoll - Apr-04-2022, 08:02 AM - Forum: General Coding Help - Replies (1)

I want to Select some files in folder based on text list (name of files ( part of name is date )) so i have two inputs one folder that contains (..... More


Attached Files

Thumbnail(s)
       
Print this item

  Transform 3 Columns into Single Column
Posted by: DaveG - Apr-03-2022, 11:11 PM - Forum: General Coding Help - Replies (9)

I Have a file comprising 3 columns of data and I would like to transform these columns into a single column, one following the other e.g. below. Could..... More

Print this item

  Need help with my code (regular expression)
Posted by: shailc - Apr-03-2022, 04:14 PM - Forum: General Coding Help - Replies (5)

Hi there,

I am new to the world of python, sorry for my primitive question!

Here is my code
import re
import collections

txt = “MCV ..... More

Print this item

  How to get evenly-spaced datetime tick labels regardless of x-values of data points?
Posted by: Mark17 - Apr-03-2022, 04:05 PM - Forum: General Coding Help - Replies (4)

I'm creating a new thread here, which originated in a question about floor division and tick labels. In there, Gribouillis suggested using np.linspac..... More

Print this item

  Best strategy for creating .exe for windows
Posted by: hammer - Apr-03-2022, 02:41 PM - Forum: General Coding Help - Replies (4)

In Linux Mint 20.2,Python 3.8 I have created an app that I now want to have a few folks test on Windows machines. My searches tell me there are basic..... More

Print this item

Question Pandas : How to create an algorithm that helps me improve results and creating new co
Posted by: Smordy - Apr-03-2022, 01:34 PM - Forum: General Coding Help - Replies (8)

Link to question on StackOverflow
in the stackoverflow Yaloa_21 understood what i want to make but i always get errors
..... More

Print this item

  The Wall-E Robot
Posted by: Argentum - Apr-03-2022, 01:18 PM - Forum: General Coding Help - Replies (1)

[size=small]Hello fellow python developers,

I am endeavoring to build a Wall-E Robot (credit to Chilibasket). This project is a challenge to say th..... More

Print this item

  Cannot store attachment in a reply
Posted by: ibreeden - Apr-03-2022, 10:17 AM - Forum: Board - Replies (5)

I wanted to add a picture in a reply, but this appears to be impossible. One can only add an attachment when creating a new thread. Neither is it poss..... More


Attached Files

Thumbnail(s)
   
Print this item

  PySimpleGUI not importing
Posted by: garynewport - Apr-03-2022, 08:42 AM - Forum: General Coding Help - Replies (3)

I am using a Mac with PyCharm as my IDE.

I have Python 3.10.2 installed.

If I do python -m pip list I get told..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error 10 hours ago CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 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...
Most views
  The best Prog... 575964
  Tutorial Requ... 497361
  Web Scraping ... 439931
  Newbie with P... 383674
  New Users Int... 366085
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+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 6
buran 3
Newest members
alexguemez Yesterday
Shadab Yesterday
Dibbley Yesterday
XenonBlack 09-16
Lenowell 09-16

User Panel Messages

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