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,299
» Latest member: matt
» Forum threads: 38,796
» Forum posts: 175,892

Full Statistics

Online Users
There are currently 59 online users.
» 1 Member(s) | 54 Guest(s)
Bing, Google, Applebot, kshahzad1985

Latest Threads
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
27 minutes ago
» Replies: 1
» Views: 17
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
7 hours ago
» Replies: 3
» Views: 116
silent deployment Python ...
Forum: News and Discussions
Last Post: Bummibaer
7 hours ago
» Replies: 2
» Views: 82
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
11 hours ago
» Replies: 6
» Views: 3,186
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 251
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 139
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 95
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,529
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 181
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 84

 
  zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ?
Posted by: Rsh - Jun-24-2019, 05:32 PM - Forum: General Coding Help - Replies (9)

Below are few lines on zip log file python script.
Getting output file name as different shown below,

[python]zip_file_name = zipfile.ZipFile(serv..... More

Print this item

  Asyncio Webserver
Posted by: philwhite - Jun-24-2019, 05:24 PM - Forum: Code sharing - Replies (4)

I created a custom web server in Python using Asyncio that I thought I'd share with the Python community. It hosts both Python and static code (HTML/..... More

Print this item

  Error: "Can't set attribute"
Posted by: Norica - Jun-24-2019, 03:42 PM - Forum: General Coding Help - Replies (8)

Hello,

I added a setter, but I still get an error. What do I do wrong?
The class is pretty big so I posted just these pieces of code.

[python]..... More

Print this item

  Determining string intersection (embeddings) between two narrative (text) fields
Posted by: twinpiques - Jun-24-2019, 02:19 PM - Forum: Data Science - Replies (2)

Hello. I am trying to solve a text analytics problem.

I have two data sets (DS1 and DS2). DS1 contains a narrative text field (Description_S). ..... More

Print this item

  GUI Freeze/tkinter
Posted by: SamGer - Jun-24-2019, 02:10 PM - Forum: GUI - Replies (2)

Hello Users,

I have a python script called Master which runs continously (using while 1:). Now I want to create a simple GUI using tkinter t..... More

Print this item

  hatching based of maximum of 3 different arrays
Posted by: Staph - Jun-24-2019, 02:00 PM - Forum: General Coding Help - Replies (1)

I have three numpy arrays

A.shape = 72 X 144
B.shape = 72 X 144
C.shape = 72 X 144

I want to create one color map from these ar..... More

Print this item

  Capture Pyro Object
Posted by: thegameison - Jun-24-2019, 01:54 PM - Forum: General Coding Help - Replies (1)

Hi,

I have a script which on running creates a Pyro object. I need to capture the Pyro object created such that the process still keeps running.
L..... More

Print this item

  Need help with coin change program
Posted by: Gateux - Jun-24-2019, 01:20 PM - Forum: Homework - Replies (2)

Write a program that reads an input representing a change which is an amount less than 1 dollar. The program calculates the change into 5..... More

Print this item

  Code modification
Posted by: okrus - Jun-24-2019, 01:18 PM - Forum: General Coding Help - No Replies

Hi,

I have a Python script that generates a 3D plot from a Excel .csv file with three columns (Phi, Theta and Power). I'm pretty new with Python. Now..... More

Print this item

  Code syntax with underscore and assigning to a tuple
Posted by: santoshbwn - Jun-24-2019, 11:59 AM - Forum: General Coding Help - Replies (1)

Hi,

I need help in understanding the below syntax.

1)How should I pass the 2nd argument? Should i pass it as 24_2 , where 24 is the current sum ..... More

Print this item

  Does pysftp need a logout?
Posted by: Pedroski55 - Jun-24-2019, 11:19 AM - Forum: General Coding Help - Replies (2)

I've been practicing with ssh, sftp and pysftp.

Somehow I managed to make them all work, which is almost a wonder for me!

If I connect from a ba..... More

Print this item

  importing modules
Posted by: PiaNa - Jun-24-2019, 11:00 AM - Forum: General Coding Help - Replies (1)

Hi,
I have an ETL project and 8 main directories. One of them has directories has my own written modules that need to be imported in scripts in orde..... More

Print this item

  [nltk] Naive Bayes Classifier
Posted by: constantin01 - Jun-24-2019, 10:36 AM - Forum: Data Science - No Replies

Hello

I use nltk.NaiveBayesClassifier in order to make opinion analysis. I have a problem.

What I do:

1. Take lists of negative and positive ..... More

Print this item

  what is scope for python?
Posted by: samexpert - Jun-24-2019, 10:36 AM - Forum: General Coding Help - Replies (2)

hye guys what is the scope for python. as I am fresher in this field, I want to learn python. should i learn it or not?

Print this item

  parse json output to simple text or variable
Posted by: murali_datascience - Jun-24-2019, 07:38 AM - Forum: Data Science - Replies (1)

Hi,
I have below python code for face_recognition.basically it is comparing two images and providing match or not.I am getting output in json for..... More

Print this item

  trying to use cgi to get html form data
Posted by: test - Jun-24-2019, 05:45 AM - Forum: Networking - Replies (3)

Hello,
I have made an HTML form and need to get the data that a user inputs into an excel sheet.
Looking around, i found that it could be possible ..... More

Print this item

  Proxy Issues with REQUESTS_HTML
Posted by: andrewnzinuk - Jun-24-2019, 05:38 AM - Forum: General Coding Help - No Replies

Hi

I am new to Python and am looking at scraping some data from a website. I sit behind a firewall and cannot make a connection to the outside wor..... More

Print this item

  Git clone all of a Github user's public repositories (download all repositories)
Posted by: rootVIII - Jun-24-2019, 05:13 AM - Forum: Code sharing - Replies (31)

A simple script to download a user's Github repositories... only their own though... not forked ones..... More

Print this item

  Python 3.7 - Adding mapping functionality to existing SQL data
Posted by: stixmagiggins - Jun-24-2019, 05:06 AM - Forum: News and Discussions - Replies (2)

Hi there,

I have a Python application which connects to a SQL database. This allows the user to enter data via a form.
They want to be able to add..... More

Print this item

  using output of one function into another function
Posted by: ibaad1406 - Jun-24-2019, 04:56 AM - Forum: General Coding Help - Replies (7)

Write two functions, one called addit and one called mult. addit takes one number as an input and adds 5. mult takes one number as an input, and multi..... More

Print this item

  Remove \n from list of values within a pandas columns
Posted by: klllmmm - Jun-24-2019, 12:20 AM - Forum: General Coding Help - Replies (2)

I want to replace all \n within pandas dataframe with space.
[python]import pandas as pd
table = pd.DataFrame(data = {'ClientID':[100,102,103],
..... More

Print this item

  Remove \n at the end of a character from a list
Posted by: judkil - Jun-23-2019, 11:26 PM - Forum: General Coding Help - Replies (2)

Hi !

After getting a series of numbers in a text file via the command with open, I end up with the following list:

['13.5\n', '17\n', '9.5\n', '..... More

Print this item

  Custom encoding problems.
Posted by: SheeppOSU - Jun-23-2019, 11:16 PM - Forum: General Coding Help - No Replies

I was using pickle to load and unload data from a file. Before putting it in the file I wanted to kinda jumble up the words. I succeeded in Encoding a..... More

Print this item

  New to Python. Please help!!!
Posted by: hoangthai10788 - Jun-23-2019, 10:39 PM - Forum: General Coding Help - Replies (1)

Hello there,

I am new to Python. I have been taking a free online course and encountered a problem while self-studying it. With some modifications,..... More

Print this item

  Json value extraction
Posted by: aaronwarwick - Jun-23-2019, 09:35 PM - Forum: General Coding Help - Replies (1)

I have the fallowing code.

for (ID, Info) in mycursor:
print("ID {}, Population {}".format(ID, Info))


It is returning a table with va..... More

Print this item

  need help on logic for even or odd
Posted by: cor41 - Jun-23-2019, 09:08 PM - Forum: General Coding Help - Replies (2)

what is the indentation error here ?

any suggestions at "else:" ?


[python]

for i in range(1 ,10):
count_even=0
count_odd=0
if (i%2..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Proposal for PEP 27 minutes ago matt Gribouillis News and Disc...
  My regex function is not ... 7 hours ago Moltar1997 perfringo General Codin...
  silent deployment Python ... 7 hours ago Bummibaer Bummibaer News and Disc...
  best way to learn python 11 hours ago dutch ichsanputr News and Disc...
  data fetching for indian ... Yesterday, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
Most views
  The best Prog... 579372
  Tutorial Requ... 512373
  Web Scraping ... 442282
  Newbie with P... 386338
  New Users Int... 380292
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+ 12110
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
matt Today
Divyakrishnan071 Today
ichsanputr Today
nicos18 Yesterday
Moltar1997 Yesterday

User Panel Messages

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