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,984
» Latest member: moranmarkh
» Forum threads: 38,734
» Forum posts: 175,573

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 40 Guest(s)
Bing, AOL, AOL

Latest Threads
create ocr to detect lice...
Forum: General Coding Help
Last Post: moranmarkh
21 minutes ago
» Replies: 2
» Views: 23
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 10:37 PM
» Replies: 5
» Views: 163
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,033
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 448
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,080
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,144
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 821
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,105
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,546
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,136

 
  re.split multiple delimiters problem
Posted by: gw1500se - Jun-23-2019, 03:27 PM - Forum: General Coding Help - Replies (2)

I'm trying to split a long string using both a colon and new line as delimiters. It is splitting on the colon but not the new line. I guess I need som..... More

Print this item

  Deleting data in sqlite3
Posted by: JJ39 - Jun-23-2019, 02:59 PM - Forum: General Coding Help - Replies (3)

Do not delete the rows from the table. There are no errors.
[python]
dsh11 = dsh[0]
all_table = var.get()
cursor.execute('DELETE FROM {} WHERE ? =..... More

Print this item

  simple string & input problem
Posted by: kungshamji - Jun-23-2019, 11:04 AM - Forum: General Coding Help - Replies (5)

[color=#000000]im building a bmi calculator, very new to programming and i have this problem
[spoiler]
[python][python][b]name = input("what's your ..... More

Print this item

  add tab in python output
Posted by: evilcode1 - Jun-23-2019, 05:52 AM - Forum: General Coding Help - Replies (5)

hello all ...

how i can print this output with tab's
[output]ilename: reminders.db [x-sqlite3]
Filename: plus.db [x-sqlite3]
Filename: c..... More

Print this item

  Flask: Making my first web site
Posted by: Truman - Jun-23-2019, 12:01 AM - Forum: Web Scraping & Web Development - Replies (38)

I'm following Corey Schafer's tutorial and it all works well on his end but this is what happens on mine...

first, I created flaskblog file
[python]f..... More

Print this item

  github pro
Posted by: metulburr - Jun-22-2019, 11:59 PM - Forum: Bar - Replies (3)

Did you know you can get pro with github for free with a school email?

This to me is probably the most useful aspect
[quote]With GitHub Pro, your..... More

Print this item

  How to save a class object to a file?
Posted by: SheeppOSU - Jun-22-2019, 11:34 PM - Forum: General Coding Help - Replies (2)

i was using json to save some data for my game. While I was trying to save I noticed I got an error on serializing the Player class. I could save all ..... More

Print this item

  Beginner Getting an error
Posted by: Boa - Jun-22-2019, 10:55 PM - Forum: General Coding Help - Replies (5)

I'm following this video series but I seem to have messed up at some point. The error is at line 70. Can anyone spot where I have gone wrong?

[pyth..... More

Print this item

  Sum with substr in Python
Posted by: Scott - Jun-22-2019, 10:16 PM - Forum: Data Science - Replies (3)

Hi everyone,

I am a SAS user and it has a very useful function call substr. I cannot find an equivalent for Pandas or Python.

I am trying to sum..... More

Print this item

  Weird spacing in grid layout
Posted by: test - Jun-22-2019, 08:25 PM - Forum: GUI - Replies (3)

Hello!
I am trying to make a form using kivy. Here is what i tried.
[python]
class MyMainApp(App):
def build(self):
x = 0.3
x1 = 0.6
y = 40
l..... More

Print this item

  python code begginer
Posted by: abdielG252 - Jun-22-2019, 07:20 PM - Forum: Homework - Replies (3)

Hello I'm new in this page. I'm a beginner in python, and i have a question about this program.
I need to do this exercise:
Write a program to remo..... More

Print this item

  reindex dataframe after sorting
Posted by: Clunk_Head - Jun-22-2019, 06:53 PM - Forum: Data Science - Replies (4)

It's a simple problem I'm sure, but I haven't found a solution.
I'm sorting a dataframe, then I need to reindex, starting from 1.
However, reindex u..... More

Print this item

  "NameError: name 'catName1' is not defined
Posted by: tofif - Jun-22-2019, 06:23 PM - Forum: Homework - Replies (3)

Greetings everybody,
First off, I'm a 71 year old retired male at home trying to learn python. No schools involved. I just thought this was the best ..... More

Print this item

  monitor when a device connects (mac address)
Posted by: drifterf - Jun-22-2019, 05:38 PM - Forum: General Coding Help - Replies (4)

hi, i am looking at creating the following script.

i currently have been working on a project over the last year for a wiegand access control syst..... More

Print this item

  Creating Tables in SQL
Posted by: danteslion - Jun-22-2019, 04:42 PM - Forum: General Coding Help - Replies (2)

Trying to create a create a table in SQL based on user input for example:
[python]
City= input(blah blah)
C.execute(CREATE TABLE IF NOT EXISTS ????..... More

Print this item

  Notepad vs anaconda spyder or python shell
Posted by: ShadowAlpha - Jun-22-2019, 04:39 PM - Forum: News and Discussions - Replies (2)

I am running on windows 10, and i noticed when i save python script in spyder or a python IDE as .py and click on it it doesnt really run but when i s..... More

Print this item

  pandas change row value an existing column with conditionals
Posted by: Gigux - Jun-22-2019, 03:23 PM - Forum: Data Science - Replies (1)

Hello,
I have loaded a dataframe in tsv format with pandas with:
[python]import numpy as np
import pandas as pd
df = pd.read_csv(<file>, delimite..... More

Print this item

  Line Number Tkinter Text Are
Posted by: smabubakkar - Jun-22-2019, 02:24 PM - Forum: GUI - Replies (1)

Hi ,

I have created a python program based on Tkinter to compare two text files, i need display line number before every line. now i have solution ..... More

Print this item

  AttributeError Regex
Posted by: linh_py - Jun-22-2019, 12:51 PM - Forum: Homework - Replies (5)

hello everybody, i'm learning python, use re module, and i had a error, help me please.
[python]import re
numRegex=re.compile(r"^\d{1,3}(,(\d{3}))*$..... More

Print this item

  Need guidance on String indexing
Posted by: Gateux - Jun-22-2019, 10:38 AM - Forum: Homework - Replies (3)

Am learning Python for school and reading a Python textbook, I come across one part that I don't understand.

[python]>>> grades = ['A', 'B', 'C', '..... More

Print this item

  Pymssql library failing when upgrading to Python 3.7 - win32 issue
Posted by: stixmagiggins - Jun-22-2019, 09:28 AM - Forum: General Coding Help - Replies (5)

Hi,

I upgraded Python from 3.4 to 3.7 and now when I test my code I get the error

[i]File "J:\Python_Scripts\Python_Application_Testing_Briars\B..... More

Print this item

  looping for time while skipping a day
Posted by: Staph - Jun-22-2019, 07:52 AM - Forum: General Coding Help - Replies (2)

So I have a dailiy time series of len 20311,

I want to create a loop as which increases by 365 but skiping on day as follows

pick the 0:365, 36..... More

Print this item

  error running python in sublime text3
Posted by: srm - Jun-22-2019, 06:44 AM - Forum: General Coding Help - Replies (3)

Hi trying to work python code in sublime text3 but getting following error
[error]'python' is not recognized as an internal or external command,
ope..... More

Print this item

  python script file not opening in IDLE editor
Posted by: srm - Jun-22-2019, 06:09 AM - Forum: General Coding Help - Replies (2)

Hi there,
I am working with python3.7.2 on windows 2008R2 server edition.I am able to work successfully in IDLE editor.But when I try to open my.py f..... More

Print this item

  selenium proxy web crawler
Posted by: rootVIII - Jun-22-2019, 04:22 AM - Forum: Code sharing - No Replies

Here is the repository. Performance may vary depending on the current proxy. If an exception ..... More

Print this item

  Error when entering letter/character instead of number/integer
Posted by: helplessnoobb - Jun-22-2019, 03:01 AM - Forum: General Coding Help - Replies (2)

Hello all,
Excuse my complete lack of knowledge and "newbie-ness" as it has only been a few hours since I started my already rocky road to understand..... More

Print this item

  [Flask] How to paginate a list of posts
Posted by: SheeppOSU - Jun-22-2019, 02:41 AM - Forum: Web Scraping & Web Development - Replies (2)

I created a list of the posts I want to display. How would I go about paginating a list of posts? If you need code I can give it, but I just need an e..... More

Print this item

  Niantic Games
Posted by: micseydel - Jun-21-2019, 11:46 PM - Forum: Bar - No Replies

In case anyone wants to be friends on Pokemon Go or Wizards Unite, here are my friend codes:

HP: 0978 7715 896
Pkgo: 9075 7743 0961

(Boo on Nia..... More

Print this item

  [pandas] convert Int to str
Posted by: Scott - Jun-21-2019, 10:20 PM - Forum: Data Science - Replies (8)

Hi everyone,

How do I convert an int to a string in Pandas?

data['Hs_code'] = data.Hs_code.astype(str)
this is my current at..... More

Print this item

  Simple web framework
Posted by: afn - Jun-21-2019, 10:08 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi. I have a task where I need to generate a simple html page with input field, submit button and serve http requests(in other words, I need http serv..... More

Print this item

  API JSON Iteration...again
Posted by: cyberblitz - Jun-21-2019, 09:19 PM - Forum: General Coding Help - Replies (8)

Wanted to edit my previous post but was not able to, so I'm reposting it here


Hi,

New to Python. I am trying to create some code that extracts..... More

Print this item

  no coding= option fo subprocess.Popen()
Posted by: Skaperen - Jun-21-2019, 06:32 PM - Forum: General Coding Help - Replies (5)

i want to have utf8 decoding on the stdout pipe with subprocess.Popen() so when it is read i get str instead of bytes, but i see no option to set that..... More

Print this item

  Help understanding Bioinformatics question?
Posted by: a_real_phoenix - Jun-21-2019, 05:34 PM - Forum: Data Science - Replies (4)

Hi there. I have some Bioinformatics homework to do which involves using Python, and honestly I'm having a hard time wrapping my head around the quest..... More

Print this item

  Pandas - updating the original dataframe with sub selects
Posted by: Ecniv - Jun-21-2019, 02:12 PM - Forum: Data Science - No Replies

Hi

I have a dataframe with the follwoing columns

source	date	host	tag	adreq	adimpr	revenue	Device	deleteme
Now some of the rows h..... More

Print this item

  Beautifulsoup Scraping
Posted by: PolskaYBZ - Jun-21-2019, 10:26 AM - Forum: Web Scraping & Web Development - Replies (3)

Good day folks,

I started last week my first webscraping project. The code is working (beginner level), but I have some struggle to continue it. It..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  create ocr to detect lice... 21 minutes ago bimosora moranmarkh General Codin...
  Parse Markdown / get the ... Yesterday, 22:37 SpongeB0B Pedroski55 General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
Most views
  The best Prog... 577452
  Tutorial Requ... 501146
  Web Scraping ... 441081
  Newbie with P... 385154
  New Users Int... 369776
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
moranmarkh Today
bimosora Today
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday

User Panel Messages

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