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,983
» Latest member: bimosora
» Forum threads: 38,734
» Forum posts: 175,572

Full Statistics

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

Latest Threads
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 1
» Views: 29
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 10:37 PM
» Replies: 5
» Views: 166
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: 824
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

 
  Need to create a dictionary from a *.csv
Posted by: 74razor - Dec-17-2019, 04:01 PM - Forum: General Coding Help - Replies (5)

Hello everyone, new learner here. I'm taking Kirk Byers free 'Python for Network Engineers' course and am reading 'Learn Python the Hard Way'.

Wit..... More

Print this item

  NameError: name 'edit' is not defined
Posted by: CabbageMan - Dec-17-2019, 03:34 PM - Forum: General Coding Help - Replies (5)

I am trying to get the value from "edit", but I can't seem to get it to work.

[python]
edit = 0

def knapp_1(self):
global edit
..... More

Print this item

  Python animation of two sublot
Posted by: tpalb28 - Dec-17-2019, 03:27 PM - Forum: Data Science - Replies (1)

I'm triying to have an animation of two or more subplots. Actually this is the code of the subplots, i would like to have a loop animation of these tw..... More

Print this item

  How do I copy files without case sensitive?
Posted by: mcesmcsc - Dec-17-2019, 03:06 PM - Forum: General Coding Help - Replies (8)

here is my code for copying files from my downloads folder. It only copies one and not all. I'd like it to copy all the readme files so when it looks ..... More

Print this item

  error working with classes. what am i doing wrong?
Posted by: Blackjack1 - Dec-17-2019, 03:04 PM - Forum: Homework - Replies (1)

Hi, we have been provided with this section of code:


[python]class beam(object):
'''This class is models the deflection of a simply supporte..... More

Print this item

  5 Variable- Multiple Boolean Code
Posted by: cf25 - Dec-17-2019, 01:48 PM - Forum: Homework - Replies (1)

Currently off by 1.0 with every code attempt.. not sure where:

[python]item = "quesadilla"
meat = "steak"
queso = False
guacamole = False
doubl..... More

Print this item

  Compare two images with Python is possible?
Posted by: Delemir78 - Dec-17-2019, 01:37 PM - Forum: General Coding Help - Replies (3)

Hi everyone, I would like to write a code to compare two photographs (same dimensions) in order to understand if they are similar or not.

I take ph..... More

Print this item

  Issue in .apply function
Posted by: fullstop - Dec-17-2019, 01:29 PM - Forum: General Coding Help - No Replies

I have a simple code as below
[python]
import pandas as pd
matrix = [(222, 34, 23),
(333, 31, 11),
(444, 16, 21),
..... More

Print this item

  Filter value from DataFrame apply a function and save to xlsx
Posted by: zinho - Dec-17-2019, 01:27 PM - Forum: Data Science - Replies (1)

Hi
After read my df I need filter to get specific values then use a function, add a column in this new df then save to excel file.
[python]import pa..... More

Print this item

  User Defined function not working
Posted by: Raj_Kumar - Dec-17-2019, 11:42 AM - Forum: General Coding Help - Replies (4)

Hi

iam very beginner to python. my query is, i wrote user defined function(num()) to take input value (list item). if input value is not in the lis..... More

Print this item

  Classes
Posted by: GFreenD - Dec-17-2019, 10:17 AM - Forum: General Coding Help - Replies (1)

Hey so ive been trying to do atm code and wanted to know how do i make classes inherit other classes attributes for example having 2 classes of base a..... More

Print this item

  How to Use Python for solving the following physics question. Python Code required
Posted by: ishahid - Dec-17-2019, 09:56 AM - Forum: Homework - Replies (8)

How to Use Python for solving the following physics question. Python Code and procedure required
A car of mass 1600kg moving with an initial ..... More

Print this item

  ssh script help
Posted by: deepakkr3110 - Dec-17-2019, 07:48 AM - Forum: General Coding Help - Replies (3)

Hello

I have more than 90+ servers and each time a new user add in our group so we have to add their SSH key to each server to give access to the s..... More

Print this item

  non-finite value error when cleaning data
Posted by: yokaso - Dec-17-2019, 07:26 AM - Forum: Web Scraping & Web Development - No Replies

hi,after scraping data i tried to clean it and i got the following error message
[quote]ValueError: Cannot convert non-finite values (NA or inf) to ..... More

Print this item

  The most popular [worst] passwords of 2019
Posted by: buran - Dec-17-2019, 07:08 AM - Forum: Bar - No Replies

https://nordpass.com/blog/top-worst-passwords-2019/

Print this item

  word wrap text output
Posted by: Skaperen - Dec-17-2019, 06:41 AM - Forum: News and Discussions - Replies (2)

my script has huge strings of text to output in a (probably virtual) text-mode environment. i would like to have something that can break up the text..... More

Print this item

  Mysql and data manipulation
Posted by: disloyalzeus - Dec-17-2019, 04:41 AM - Forum: Data Science - Replies (5)

Hi Everyone,

I am fairly fresh to python and mysql and despite my hours of reading on this I cannot work out what I need to do to achieve the belo..... More

Print this item

  Packt $5 sale
Posted by: Larz60+ - Dec-17-2019, 04:35 AM - Forum: News and Discussions - Replies (1)

Packt 5$ sale has started, all ebooks and videos are $5 until sale ends
link: https://www.packtpub.com/all-products

Print this item

  Adding an inventory and a combat system to a text based adventure game
Posted by: detkitten - Dec-17-2019, 03:07 AM - Forum: Game Development - Replies (2)

Hello,

I am relatively new to Python and have started making a text-based adventure game. I have made the basic movement part of the game using a s..... More

Print this item

  Using Python to search through a list of urls
Posted by: jeremy - Dec-17-2019, 03:04 AM - Forum: General Coding Help - Replies (4)

I want to be able to extract data from multiple pages. The pages are in the following format:

[output]
https://www.trademe.co.nz/browse/categoryat..... More

Print this item

  File system representation in a data structure
Posted by: Alfalfa - Dec-17-2019, 01:51 AM - Forum: General Coding Help - Replies (1)

I have a problem related to a Qt app, but I figured it would be ok to post it in this section as is it not Qt specific. Still, I left the code in it's..... More

Print this item

  Python create directories within directories
Posted by: mcesmcsc - Dec-17-2019, 12:23 AM - Forum: General Coding Help - Replies (2)

I need to create a directory, then create 24 more directories within the main directory, then add 3 more numbered directories within the 24. This is w..... More

Print this item

  Theory question on grid neighbors
Posted by: Clunk_Head - Dec-16-2019, 08:25 PM - Forum: General Coding Help - Replies (9)

I am looking for the name of an algorithm if one exists, or something to read as an answer to this question.
I am writing a video game and I need to k..... More

Print this item

  what function should i use to tidy up my code (extreme beginner)
Posted by: scraig0117 - Dec-16-2019, 02:16 PM - Forum: General Coding Help - Replies (4)

[python]class Players:
def __init__(self, full_name, goals, shots, headers, tackles, passes, clean_sheets):
self.nm = full_name
..... More

Print this item

  Auto-copy all displayed "print" results into clipboard?
Posted by: smallabc - Dec-16-2019, 01:56 PM - Forum: General Coding Help - Replies (1)

Are there any ways for python to store all its "print" messages into clipboard, after finishing its execution at the end?
I come across a module "pyp..... More

Print this item

  mixed types
Posted by: MattT - Dec-16-2019, 01:19 PM - Forum: General Coding Help - Replies (2)

I have mixed data types when trying to load in several CSV files into jupyter notebook. How can I fix this? Thanks for any help

Code
[pytho..... More

Print this item

  Problem defining a variable
Posted by: rix - Dec-16-2019, 11:39 AM - Forum: General Coding Help - Replies (6)

[python]def checkUserDesiredMethod():
userDesiredMethod=input("Would you like to register an account or login?\n(reg) /\n(login) /\n(none) /\n")...... More

Print this item

  Pandas merge csv files
Posted by: karlito - Dec-16-2019, 09:15 AM - Forum: Data Science - Replies (2)

Hi,

I was trying to merge two csv files and it worked BUT the first column of the beginning of the merged file starts with a "," (see ..... More

Print this item

  how to convert list to string after append !!
Posted by: evilcode1 - Dec-16-2019, 08:37 AM - Forum: General Coding Help - Replies (3)

hello
my code :
[python]import requests
from bs4 import BeautifulSoup as lo

def openwebsite(url):

qan = requests.get(url)
dev = q..... More

Print this item

  Username Changed. Windows 10
Posted by: senchoi - Dec-16-2019, 08:26 AM - Forum: News and Discussions - Replies (1)

I changed the username recently and tried to uninstall old version, python3.7.4.
And installed new version, python 3.8.0.
I couldn't uninstall old v..... More

Print this item

  Create your own Mnist images (NNW, MNIST)
Posted by: stalfilip - Dec-16-2019, 08:23 AM - Forum: Data Science - Replies (1)

Hi!

So i've been training an number classification program with the Mnist dataset, and i've also tested it with Mnist:s "test set" and got it to wo..... More

Print this item

  Creating virtual environment with venv
Posted by: arilev - Dec-16-2019, 07:31 AM - Forum: General Coding Help - Replies (1)

I'm pulling my hair out trying to install Flask on my Mac. I have Python 3.8.0. I'm trying to create a virtual environment using the [b]python3 -m ven..... More

Print this item

  How to import annoations for python 3.7 and below
Posted by: BrendanSimon - Dec-16-2019, 05:30 AM - Forum: General Coding Help - Replies (3)

I want to have code that uses Python 3.7's

from __future__ import annoations
,
but I also want the code to run on older versions of P..... More

Print this item

  accessing Json dictionary
Posted by: lshankar - Dec-16-2019, 05:27 AM - Forum: General Coding Help - Replies (1)

can you tell what is wring in my following code : want to access certain key values from a json file (in dictionary format) and store it to a variabl..... More

Print this item

  Can't install mysqlclient on mac
Posted by: Gabn123 - Dec-16-2019, 04:04 AM - Forum: General Coding Help - Replies (5)

MySQL client won't install on mac, and whenever I try to use "pip3 install mysqlclient==1.4.2.post1" an error message saying "Command "python setup.py..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  create ocr to detect lice... 2 hours ago bimosora Pedroski55 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... 577454
  Tutorial Requ... 501157
  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
bimosora Today
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday
Joliekeva Yesterday

User Panel Messages

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