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,425
» Latest member: Ronnieref
» Forum threads: 38,832
» Forum posts: 176,081

Full Statistics

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

Latest Threads
Купить розы в Томске
Forum: General Coding Help
Last Post: Ronnieref
6 minutes ago
» Replies: 0
» Views: 7
If I open a file write or...
Forum: General Coding Help
Last Post: Pedroski55
2 hours ago
» Replies: 6
» Views: 161
we open-sources faster py...
Forum: Code sharing
Last Post: tomtyiu
3 hours ago
» Replies: 0
» Views: 13
Ко ланта
Forum: General Coding Help
Last Post: RaymondNaw
4 hours ago
» Replies: 0
» Views: 16
Life advice
Forum: Bar
Last Post: Josephbar
6 hours ago
» Replies: 3
» Views: 3,583
Exponential Number Conver...
Forum: General Coding Help
Last Post: Jessicaadams
Yesterday, 02:41 PM
» Replies: 5
» Views: 504
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Jan-11-2026, 05:21 AM
» Replies: 3
» Views: 759
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Jan-11-2026, 02:57 AM
» Replies: 8
» Views: 552
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 847
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,798

 
  Is pathlib a viable replacement for os.path?
Posted by: j.crater - Jan-12-2018, 07:01 PM - Forum: General Coding Help - Replies (4)

So far I have used only os.path, and as I have stumbled over that topic in a guide I am reading, it got me wondering...
Can pathlib replace os.path co..... More

Print this item

  Install issue 2.7.9 vs 2.7.14
Posted by: Spankybus - Jan-12-2018, 06:31 PM - Forum: General Coding Help - Replies (2)

Hey Mates,

Sorry if this is in the wrong location, but I didnt see a support section. Anyone run into an issue with win 10 where the 64-bit msi wil..... More

Print this item

  Error while scraping item price from online store
Posted by: mgtheboss - Jan-12-2018, 05:14 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

I am trying to scrape the price of an item from an online store. The code works with sites such as ebay.com, amazon.com etc. and many others bu..... More

Print this item

  misclassification rate calculation for multi class label
Posted by: python_newbie09 - Jan-12-2018, 04:18 PM - Forum: Homework - Replies (1)

I have a confusion matrix with 4 labels and the results were as below

[[ 81 4 41 0]
[ 10 10 6 1]
[ 7 0 392 0]
[ 4 2 8 5..... More

Print this item

  Global vs local variable
Posted by: mquesnel - Jan-12-2018, 03:01 PM - Forum: General Coding Help - Replies (11)

Hi I'm a teacher and I just began learning Python so I can show some tips to my students. I code a little math game and I have an issue with global vs..... More

Print this item

  Data Science and Machine Learning sub-forum
Posted by: Beliavsky - Jan-12-2018, 02:49 PM - Forum: Board - Replies (17)

In the Python Coding forum there are sub-forums for GUI, Game Development, Networking, Web Development. Since Python is one of the main languages used..... More

Print this item

  How to implement OneHotEncoder for Multiple Categorical Columns?
Posted by: python_newbie09 - Jan-12-2018, 01:10 PM - Forum: Data Science - No Replies

Hi, I am trying to convert the car evaluation dataset from the UCI repository to implement a KNN algorithm on it and I need to first convert the categ..... More

Print this item

  Why doesn't this code work?
Posted by: hsezgin - Jan-12-2018, 01:08 PM - Forum: General Coding Help - Replies (4)

Hello everyone,
The following code didn't work while exercising on the lists. Could you tell me why the code doesn't work?

[python]
l=list(range(..... More

Print this item

  Spyder: ndarray object of numpy module error
Posted by: python_newbie09 - Jan-12-2018, 11:11 AM - Forum: Homework - Replies (6)

Hi all,

I am going through the ML A-Z course on udemy to help me solve an assignment and I am at the stage of preprocessing my data at the moment. ..... More

Print this item

  telnet unexpected output printing
Posted by: anna - Jan-12-2018, 11:11 AM - Forum: General Coding Help - Replies (3)

Hi there, manual telnet is showing below output, however my program is not showing telnet output, please suggest changes.

Manual Telnet

C..... More

Print this item

  file upload from windows10 machine using send_key in selenium fails
Posted by: nithya_g - Jan-12-2018, 09:31 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi,

I am using python2.7.6, selenium 3.8.1, Windows 10 and Chrome browser

When I upload a file using selenium send_keys command, it fails with F..... More

Print this item

  Separate python from anaconda in cmd
Posted by: Prince_Bhatia - Jan-12-2018, 08:13 AM - Forum: General Coding Help - Replies (2)

hi,

I was installing anaconda was reading some comments on general websites. it said to run this command (SETX Path "%PATH%;C:\Users\honey\Anaconda..... More


Attached Files

Thumbnail(s)
   
Print this item

  Quod Libet 4.0 (music)
Posted by: dvs1 - Jan-12-2018, 07:34 AM - Forum: News and Discussions - No Replies

[quote]Quod Libet is a music management program. It provides several different ways to view your audio library, as well as support for Internet radio ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Купить розы в Томске 6 minutes ago Ronnieref Ronnieref General Codin...
  If I open a file write or... 2 hours ago Pedroski55 Pedroski55 General Codin...
  we open-sources faster py... 3 hours ago tomtyiu tomtyiu Code sharing
  Ко ланта 4 hours ago RaymondNaw RaymondNaw General Codin...
  Life advice 6 hours ago jamesaarr Josephbar Bar
  Exponential Number Conver... Yesterday, 14:41 Tuurbo46 Jessicaadams General Codin...
  a function to watch files 01-11, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... 01-11, 02:57 arbiel Pedroski55 General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
Most views
  The best Prog... 580766
  Tutorial Requ... 522465
  Web Scraping ... 442927
  New Users Int... 388267
  Newbie with P... 387150
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+ 12117
buran 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Ronnieref Today
tomtyiu Today
RaymondNaw Yesterday
Josephbar Yesterday
zaasheytop3010 Yesterday

User Panel Messages

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