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

Full Statistics

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

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

 
  about cmp fun
Posted by: Sandesh - Jan-12-2018, 06:54 AM - Forum: General Coding Help - Replies (10)

why cmp() fun wll not work in python 3?

Print this item

  JSON TypeError: list indices must be integers, not str
Posted by: SmoZy - Jan-12-2018, 04:42 AM - Forum: General Coding Help - Replies (1)

Hello, Sorry for disturbing you but I need some help with my code.

I am trying to list all crypto currencies with a Base Volume > 200.
When I try ..... More

Print this item

  setup.py not including file in wheel
Posted by: camerondevine - Jan-12-2018, 02:17 AM - Forum: Data Science - No Replies

I am attempting to write a setup.py file for a python package that is created by compiling C++ code wrapped using SWIG. I currently have the directory..... More

Print this item

  Reddit Bot comes up with no errors but wont actually run
Posted by: Rubix3D - Jan-12-2018, 12:53 AM - Forum: General Coding Help - No Replies

Code can be found here: https://pastebin.com/wwCXV83V

I go into the directory that the .py file is in and type "python TTBot.py" it waits a few sec..... More

Print this item

  need algorithm to strip non-ascii characters from LONG csv file
Posted by: hereathome - Jan-12-2018, 12:00 AM - Forum: General Coding Help - Replies (3)

The Canadian Census offers some interesting csv files that are legally free to download and can lead to some fun doing data analysis. Sadly, these fil..... More

Print this item

  install pdfminer
Posted by: tkj80 - Jan-11-2018, 11:48 PM - Forum: General Coding Help - Replies (2)

Hi,

I tried to install pdfminer.
I used the following code on cmd: C:\Downloads> python -m pip install pdfminer.

However I got the following er..... More

Print this item

  Program fishstore()
Posted by: Truman - Jan-11-2018, 11:27 PM - Forum: Homework - Replies (2)

my assignment is:
create and test fishstore()
fishstore returns a string in sentence form
gather input to fish_entry and price_entry to use in calling..... More

Print this item

  Extract SQL Query Results in Python
Posted by: boobalganesan - Jan-11-2018, 06:58 PM - Forum: General Coding Help - Replies (3)

How to extract query results of an SQL in a comma delimited string variable in Python

conn = ora.connect("HR", "oracle", "localhost/xe")
cur=conn...... More

Print this item

  pandas: assemble data to have samples
Posted by: sdcompanies - Jan-11-2018, 06:41 PM - Forum: Data Science - Replies (2)

Hello to all,
I'm new here, and I admit I'm a newbie about Pandas library.

I'm looking around, and also I read some good books (like ..... More

Print this item

  Unable to select iframe using selenium
Posted by: endejoli - Jan-11-2018, 05:00 PM - Forum: Web Scraping & Web Development - Replies (1)

I am trying to automate login process for web page https://hpconnected.com/en/us, login form is an iframe and I am trying to switch to iframe using th..... More

Print this item

  Loading HUGE data from Python into SQL SERVER
Posted by: Sandeep - Jan-11-2018, 03:37 PM - Forum: Data Science - Replies (2)

Hi All,

I have used the below python code to insert the data frame from Python to SQL SERVER database.But when I am using one lakh rows to insert t..... More

Print this item

  To keep electronics on or off for longevity
Posted by: metulburr - Jan-11-2018, 12:58 PM - Forum: Bar - Replies (19)

My main question is for a LED LCD TV.

I usually keep all my electronics on 100% of the time. Computers, TVs, monitors, etc.

A couple of months ..... More

Print this item

  sorting a 2 dimensional array
Posted by: MDB - Jan-11-2018, 12:44 PM - Forum: General Coding Help - Replies (1)

Hey Folks,

i want to sort an array by numbers, like this array for example


[python][['B', '-50', '-30', '-8', '1000'],
['T', '-60',..... More

Print this item

  How dont' show hidden system files
Posted by: Mike Ru - Jan-11-2018, 12:30 PM - Forum: General Coding Help - Replies (5)

I'm using Windows now. I would like know how I can don't show hidden files in Windows. For example:
[python]
import os
print(os.listdir(r'C:/Users/..... More

Print this item

  Need to find a mistake in my code
Posted by: boris602 - Jan-11-2018, 12:26 PM - Forum: General Coding Help - Replies (3)

[python]A=Matrix([[1,2,0],[4,5,0],[7,8,9]]);A
def Kostenmatrix(A):
C=Matrix(A.nrows(),[])
for i in range(0.A.nrows()):
for j in ra..... More

Print this item

  stupid > comparison question
Posted by: adetheheat - Jan-11-2018, 12:22 PM - Forum: General Coding Help - Replies (2)

I have a list with a value of 4 at index 2. I compare this with a value of 200 to see if it is greater ... and strangely it says it is:

eg
[python..... More

Print this item

  int(variable) not changing variable to an integer
Posted by: StoopidChicken - Jan-11-2018, 09:59 AM - Forum: General Coding Help - Replies (2)

For whatever reason the below code runs the command int(ans), but ans is not an integer when checked.
[python]def intCheck(num):
try:
i..... More

Print this item

  Outputting a float value in a print() statement
Posted by: RedSkeleton007 - Jan-11-2018, 07:24 AM - Forum: General Coding Help - Replies (2)

For some reason, it's not letting me concatenate a float in my print statement on line 6:

[python]
#!/usr/bin/env python3
#BasicUserInterface.py..... More

Print this item

  Homework - Read from/Write to file (renamed from Help help help)
Posted by: Amitkafle - Jan-11-2018, 07:17 AM - Forum: Homework - Replies (1)

1. Scenario
An electronic store which sells electronic appliances maintains its inventory in
a text file. An application needs to be developed which..... More

Print this item

  Django webascraping
Posted by: Prince_Bhatia - Jan-11-2018, 06:11 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi,

I know webscraping in python using BeautifulSoup, but now i wish to create same webscraper in Django? Like after scraping data , display result..... More

Print this item

  How to run unix command in python
Posted by: soubalaji - Jan-11-2018, 05:17 AM - Forum: General Coding Help - Replies (1)

Hi all,

I am new to python and have a query in python as, how to run unix find command and need the output in a list.

I want to run this unix comman..... More

Print this item

  Getting error in finding time.time() value in python
Posted by: Lakshana - Jan-11-2018, 04:35 AM - Forum: General Coding Help - Replies (1)

[python]while True:

Signal=mcp.read_adc(adc_number) # The read_adc function will get the value of the specified channel and the Signal will ho..... More

Print this item

  How do you sort a table by one column?? (of floats)
Posted by: sortedfunctionfails - Jan-11-2018, 03:09 AM - Forum: General Coding Help - Replies (3)

Been struggling all day to figure this out, every guide online only shows how to use the sorted() function to change a table by a column alphabeticall..... More

Print this item

  Code help!
Posted by: aka2d7 - Jan-11-2018, 01:29 AM - Forum: Homework - Replies (7)

Hello Gurus,

I need some help with this experience that can help direct me to completing this exercise, however I need someone that can help me reall..... More

Print this item

  using eclispe and e = xml.etree.ElementTree.parse
Posted by: nickhere - Jan-11-2018, 12:59 AM - Forum: Web Scraping & Web Development - Replies (9)

my code is this
e = xml.etree.ElementTree.parse©.getroot()
under e in the debugger
it shows attrib
under that it shows id
and it a string val..... More

Print this item

  Tkinter widgets driving Arduino uno output pins
Posted by: woodcncwnc - Jan-11-2018, 12:00 AM - Forum: GUI - Replies (3)

Program is partial working. I am able to turn pin 13 on and off. What I am trying to do is have "true" feed back when the pin changes state. I am try..... More

Print this item

  Need assistance with this code
Posted by: aka2d7 - Jan-10-2018, 11:37 PM - Forum: General Coding Help - Replies (4)

Hello Gurus,

I need some help with creating a program for a parrot. Here is the information below.

1. Create a program that is a parrot. The pr..... More

Print this item

  XML using xml.etree.ElementTree Question
Posted by: Ngea - Jan-10-2018, 07:20 PM - Forum: General Coding Help - Replies (1)

Please advise me on the following issue. I have 3 sections below: data, Python code, and output. It looks like the event start does not always give ..... More

Print this item

  looping through lists
Posted by: brianl - Jan-10-2018, 05:52 PM - Forum: General Coding Help - Replies (2)

I have just started to learn Python and am going through tutorial. I have the following iteration:
[(x,y,z) for x in [1, 2, 3] for y in [1, 2, 3] fo..... More

Print this item

  csv reader Index out of range
Posted by: mathisp64 - Jan-10-2018, 05:51 PM - Forum: General Coding Help - Replies (4)

I work with large CSV files that often times are too large to open in Excel. I'm trying to write a program that will extract a dozen or so columns fr..... More

Print this item

  Mask superclass __init__
Posted by: fig0 - Jan-10-2018, 04:30 PM - Forum: General Coding Help - Replies (5)

Is there anyway to hide the superclass initialization from the user?

For example:
[python]class BaseClass:
def __init__(self):
self.param..... More

Print this item

  How to make a for loop asynchronous?
Posted by: DevinGP - Jan-10-2018, 03:57 PM - Forum: Web Scraping & Web Development - Replies (2)

Basically I have a BeautifulSoup 4 for loop that scans over all g classes in a website, so it looks like this:
[python]for g in soup.find_all(class_=..... More

Print this item

  Importing files with Pycharm
Posted by: sylas - Jan-10-2018, 02:11 PM - Forum: General Coding Help - Replies (3)

Hi all! I import easily files with Files|open. All of them fall on my screen as ordinary files, but all of them are outside the project. In order to p..... More

Print this item

  Getting error 'geckodriver' executable needs to be in PATH.
Posted by: sumandas89 - Jan-10-2018, 12:52 PM - Forum: Web Scraping & Web Development - Replies (2)

I am executing the following python program, and getting error mentioned "'geckodriver' executable needs to be in PATH. "

[python]from selenium imp..... More

Print this item

  How we can embed a metplotlib graph in tkinter
Posted by: PrashantStd - Jan-10-2018, 12:21 PM - Forum: Data Science - Replies (1)

Actually, i am pasting 2 code segments. The first code segment is generate the graph using matplotlib. while, second segment of code is for the usual ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 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... 579013
  Tutorial Requ... 510825
  Web Scraping ... 442024
  Newbie with P... 386063
  New Users Int... 377430
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
pas88 Today
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14

User Panel Messages

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