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

Full Statistics

Online Users
There are currently 35 online users.
» 0 Member(s) | 29 Guest(s)
Bing, Applebot, AOL, Google, Internet Archive

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
3 hours ago
» Replies: 2
» Views: 78
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
5 hours ago
» Replies: 1
» Views: 47
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
6 hours ago
» Replies: 1
» Views: 47
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
6 hours ago
» Replies: 5
» Views: 306
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 11:31 PM
» Replies: 0
» Views: 42
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Yesterday, 06:38 PM
» Replies: 0
» Views: 68
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:02 PM
» Replies: 10
» Views: 258
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 03:33 PM
» Replies: 3
» Views: 132
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 229
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 415

 
  Extract continuous numeric characters from a string in Python
Posted by: Robotguy - Jan-15-2021, 10:36 PM - Forum: General Coding Help - Replies (2)

I am interested in extracting a number that appears after a set of characters ('AA='). However, the issue is I: (i) am not aware how long the number..... More

Print this item

  Pipenv & Requests Author Kenneth Reitz Interview
Posted by: Evrone - Jan-15-2021, 07:51 PM - Forum: News and Discussions - Replies (1)

Kenneth Reitz is a well-known software engineer, international keynote speaker, open-source advocate, who also focuses on photography and music produc..... More

Print this item

  Which Python Version?
Posted by: muzikman - Jan-15-2021, 07:21 PM - Forum: News and Discussions - Replies (15)

Greetings,

I want to know which Python version most people are running? I was running 3.9 but had some errors when installing things like bpython...... More

Print this item

  Confusion over df.sample()
Posted by: Mark17 - Jan-15-2021, 07:02 PM - Forum: Data Science - Replies (2)

Hi all,

Here's some code:

[Python]
import matplotlib.pyplot as plt
import pandas as pd
import sys

count_a = 0
count_b = 0

die = pd.Ser..... More

Print this item

  Can't import package
Posted by: hubenhau - Jan-15-2021, 05:59 PM - Forum: General Coding Help - Replies (1)

I'm trying to follow a tutorial for Image comparison.
https://www.pyimagesea[url=https://python-forum.io/thread-32022.html]..... More

Print this item

  Code failed JSON KeyError
Posted by: popps - Jan-15-2021, 02:47 PM - Forum: General Coding Help - Replies (3)

Hello,

I am trying to retrieve information on network equipment, but I have the following error and I do not know how to handle it


[error]conn..... More

Print this item

  Why can't i use def in python?
Posted by: celinafregoso99 - Jan-15-2021, 02:42 PM - Forum: General Coding Help - Replies (4)

I am very new to programming, and previously I made a basic calculator and it uses code like:

[python]def calculator():

num1 = float(input("..... More

Print this item

  Regular expression: cannot find 1st number in a string
Posted by: Pavel_47 - Jan-15-2021, 02:39 PM - Forum: General Coding Help - Replies (2)

Hello,

Here is test string:

aaa = '   2jhjh 890 jjk'
Here is how I try to find 1st number in aaa (2 in this case):
[py..... More

Print this item

  Global variables not working
Posted by: hobbyist - Jan-15-2021, 12:53 PM - Forum: General Coding Help - Replies (9)

I have made some global variables. A simplified version of the program (but with the same rationale) is this:

[python]
sentence_1 = "hello"
sentence_..... More

Print this item

  Parsing html page and working with checkbox (on a captcha)
Posted by: straannick - Jan-15-2021, 09:35 AM - Forum: Web Scraping & Web Development - Replies (17)

Hello, I am new to Python programming and currently trying to write the very first Python program.
I am using Python 3.9 (beautifulsoup4 4.9.3, certi..... More

Print this item

Thumbs Up Flask do not accept sub-folder in Template ?! : Solved
Posted by: SpongeB0B - Jan-15-2021, 07:17 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi everyone,

I just realize that apparently we cannot create sub-folder in Templates ! :/

Is that the normal behavior ? if yes , WHY ?


[py..... More

Print this item

  adding numbers in a list
Posted by: Nickd12 - Jan-15-2021, 03:59 AM - Forum: General Coding Help - Replies (2)

what im looking to do is add 25 to elements in a list but add 25 plus the last number

example

list = [0,0,0,0]

i want the output to be

l..... More

Print this item

  First project (newbie)
Posted by: Fuzzy - Jan-15-2021, 12:07 AM - Forum: General Coding Help - No Replies

Hello! I decided to jump into Python the other day, and after going through a "basics" tutorial, I chose what I thought was a manageable first projec..... More

Print this item

  Naming the file as time and date.
Posted by: BettyTurnips - Jan-14-2021, 11:53 PM - Forum: General Coding Help - Replies (3)

I have a script that scrapes web data then puts it into an excel file and names it "Results". I'm looking to get the file name to show the current tim..... More

Print this item

  Hiring Python Dev, remote
Posted by: allpurposeben - Jan-14-2021, 09:42 PM - Forum: Jobs - Replies (2)

Watchman Monitoring is hiring a Python Developer to work on either our client-side Mac or Linux/Synology agents, depending on interest and skill set.
..... More

Print this item

  Poetry Dependency general Help
Posted by: felipesodre - Jan-14-2021, 07:46 PM - Forum: General Coding Help - No Replies

Hi everyone I am glad to be posting my first question in here. Thanks in advance.

I have a module on poetry which imports two other modules.

Wh..... More

Print this item

  How to make a bot in pycharm for youtube for automatically adding python comments
Posted by: kodek2222 - Jan-14-2021, 06:21 PM - Forum: General Coding Help - Replies (1)

How to make a bot in pycharm for youtube for automatically adding python comments.

Print this item

  Control Flow in Python assignment
Posted by: alectheprogrammer - Jan-14-2021, 05:42 PM - Forum: Tutorial Requests and Submissions - Replies (1)

Hi, Python Learners! I'm building out assignments to help people learn Python. Here's the latest one on control flow, which includes conceptual questi..... More

Print this item

  Python for Omron-Fins
Posted by: carlomatto - Jan-14-2021, 05:15 PM - Forum: General Coding Help - Replies (3)

Sorry for my bad english. I'm trying to read data from an omron-fins plc with a python scripts. I read something but that data are incomprehensible. I..... More

Print this item

  Get JSON Value based on Another value
Posted by: sambanerjee - Jan-14-2021, 04:23 PM - Forum: General Coding Help - Replies (2)

Hi -

This is the JSON below. I'm looking to get the value of 'bid' for each 'StockSymbol' - any help for this newbie ?

[output]{
"currentP..... More

Print this item

  Adding a new column to a dataframe
Posted by: lokhtar - Jan-14-2021, 03:45 PM - Forum: General Coding Help - Replies (2)

Hello,

I am working with covid-19 data, and I am trying to add a new column to the dataframe based on the datetime, converting it to a day of the w..... More

Print this item

  Variable Scopes Decorators
Posted by: oclmedyb - Jan-14-2021, 03:26 PM - Forum: General Coding Help - Replies (6)

Hello,

I try to write some Excel functions with xlwings and openpyxl.
For example one function will get details about an item from another Excel f..... More

Print this item

Question Word, adding a hyperlink from a bookmark using Python
Posted by: mart79 - Jan-14-2021, 12:52 PM - Forum: General Coding Help - Replies (1)

I am working python script that composes a document made out of multiple documents, which can be selected by the user.
This means that the composed d..... More

Print this item

  Case Insensitive Censor Function
Posted by: HNiChuimin - Jan-14-2021, 12:10 PM - Forum: Homework - Replies (5)

hello,
I am trying to write a case insensitive censor function which takes an input(text, banned) with banned being a list of banned words to censor ..... More

Print this item

  How to compare strings that have spaces
Posted by: hobbyist - Jan-14-2021, 11:13 AM - Forum: General Coding Help - Replies (2)

I want to compare two strings and check if they are the same. For example, this string:

"This is a sentence"

with this:

" This is a sentence ..... More

Print this item

  Regular expression: return string, not list
Posted by: Pavel_47 - Jan-14-2021, 11:10 AM - Forum: General Coding Help - Replies (3)

Hello,

In the following string I want to eliminate ';'.
The code

aaa = 'ABCD;'
bbb = re.findall('[A-z]', aaa)
returns list:
[..... More

Print this item

  Print output not working
Posted by: xninhox - Jan-14-2021, 10:45 AM - Forum: General Coding Help - Replies (7)

Dear All,

i started studying python and i have been facing some issues with command print. I will do an exaple:
[python]
>>>print=('Hello World'..... More

Print this item

  QR code data missing in some of my QR codes
Posted by: Pedroski55 - Jan-14-2021, 08:11 AM - Forum: General Coding Help - Replies (6)

Does this indicate a computer memory problem?

I read a csv file with student names and number in to a dictionary: numsnames

The dictionary has 1..... More

Print this item

  how to count frequency in a column
Posted by: yk303 - Jan-14-2021, 06:48 AM - Forum: Data Science - Replies (3)

Hello,

Can somebody please tell me how I can count number of 'Buy', 'Sell' on a yearly basis for the chart below.

thanks,

YK303

[output]
..... More

Print this item

  TA-Lib pip install not working Mac (Fix Found)
Posted by: DrinkinBeer - Jan-14-2021, 03:05 AM - Forum: General Coding Help - Replies (3)

Whats up everyone, hoping someone has an ideas as I have tried everything I can find to make this work.

Running iOS BigSur with Python 3.9.1 64bit.
..... More

Print this item

  Python - Pandas writing blank files to file
Posted by: tdunphy - Jan-14-2021, 12:11 AM - Forum: Data Science - No Replies

I have a python script that writes to several file formats via Pandas. It can write to CSV/JSON/HTML/Excel.

I'm pulling the data from MongoDB and i..... More

Print this item

  What type of *data* is the name of a list/tuple/dict, etc?
Posted by: alloydog - Jan-13-2021, 07:43 PM - Forum: General Coding Help - Replies (9)

In this excerpt of something I'm playing with, I create a variable from the user input. The user inpout is then added to a string. The resultant str..... More

Print this item

  Invalid syntax using conditionals if - else
Posted by: jperezqu - Jan-13-2021, 07:31 PM - Forum: General Coding Help - Replies (1)

Hi, I'm self-taught Python. I use version 3.9.
I wrote simple code to learn how to use the "if" and "else" conditionals, and they worked, but I tried..... More

Print this item

  Conditional
Posted by: erestum - Jan-13-2021, 06:48 PM - Forum: General Coding Help - Replies (3)

I am trying to design a condition yes/no statement questions and I cannot figure out what I am doing wrong :(
[python]
name = input("What is your na..... More

Print this item

  Pygame Tutorials
Posted by: MK_CodingSpace - Jan-13-2021, 06:27 PM - Forum: Tutorial Requests and Submissions - No Replies

I have developed a series of Python game tutorials on my Youtube Python Programming Chan[url=https://python-forum.io/thread-31989.html]..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 3 hours ago nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 5 hours ago Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 6 hours ago Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... 6 hours ago Skaperen DeaD_EyE News and Disc...
  conditional nested loops Yesterday, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... Yesterday, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue Yesterday, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... Yesterday, 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... 578990
  Tutorial Requ... 510655
  Web Scraping ... 442006
  Newbie with P... 386037
  New Users Int... 377258
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
SledgeNE Today
nathanael Yesterday
JamesFalkner Yesterday
stevecoh1 Yesterday
Bamboo Yesterday

User Panel Messages

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