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,256
» Latest member: TomTMH
» Forum threads: 38,782
» Forum posts: 175,831

Full Statistics

Online Users
There are currently 47 online users.
» 1 Member(s) | 41 Guest(s)
Applebot, Google, AOL, TomTMH

Latest Threads
New to python and coding
Forum: Homework
Last Post: jefsummers
21 minutes ago
» Replies: 6
» Views: 162
Please guide me to comple...
Forum: General Coding Help
Last Post: pbkurd
1 hour ago
» Replies: 0
» Views: 20
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 6
» Views: 88
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
8 hours ago
» Replies: 6
» Views: 334
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:26 PM
» Replies: 2
» Views: 102
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 235
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 362
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 140
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,638
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 242

 
  pandas dataframe
Posted by: ian - Sep-15-2017, 01:21 PM - Forum: Data Science - Replies (1)

I have a file Test.csv as below
ColumnA
FM
NA
EC

When run code below, it shows nan, not 'NA'. how to fix it? Thanks
FM
nan
EC

[python]
i..... More

Print this item

  Can I install Python 3.6.2 on Windows 10 for All Users?
Posted by: DAWO - Sep-15-2017, 11:48 AM - Forum: News and Discussions - Replies (1)

Hi,

We have Windows 10 laptops each with a local administrator account for our teachers, and one or more local standard user accounts for our stude..... More

Print this item

  Error connecting to client
Posted by: rajeev1729 - Sep-15-2017, 09:20 AM - Forum: General Coding Help - Replies (2)

[python]
from tkinter import *
from tkinter.ttk import *
import socket
import _thread

class ChatClient(Frame):

def __init__(self, root):..... More

Print this item

  location settings for Django Uwsgi Nginx Configuration for production
Posted by: sandyman - Sep-15-2017, 09:08 AM - Forum: Web Scraping & Web Development - No Replies

Django settings

STATICFILES_DIRS = [STATIC_DIR, ]
STATIC_DIR = os.path.join(BASE_DIR, 'static')
STATIC_ROOT = '/home/sandyman/production/django_p..... More

Print this item

  maximum lenght of a regex-match
Posted by: maashoeven - Sep-15-2017, 07:10 AM - Forum: General Coding Help - Replies (2)

You will see three snippets, first a part of my Python-code, second a part of the text the Python works on and third some printed results. Then I desc..... More

Print this item

  typeerror:byte like object is required
Posted by: rajeev1729 - Sep-15-2017, 05:59 AM - Forum: General Coding Help - Replies (1)

#server.py
[python]
import socket # Import socket module
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a socket object
host = soc..... More

Print this item

  While Loop; Can Else Point Back To Initial Input Command?
Posted by: RodNintendeaux - Sep-15-2017, 05:53 AM - Forum: Homework - Replies (9)

Guys and gals, I have lost my ever-loving mind. I was given a homework assignment (Intro to Python) and I have mostly figured this out, but I cannot g..... More

Print this item

  Ugh, Someone Went and Implemented Case
Posted by: ichabod801 - Sep-15-2017, 05:33 AM - Forum: News and Discussions - Replies (2)

reddit

..... More

Print this item

  Change Windows Sound Output Device with Python
Posted by: delfar - Sep-14-2017, 11:11 PM - Forum: General Coding Help - Replies (1)

Hey there,

On my main PC I have several different sound output devices that I have to constantly switch between. This process is tedious, as I have..... More

Print this item

  thread in python3
Posted by: tony1812 - Sep-14-2017, 10:49 PM - Forum: General Coding Help - Replies (1)

helo, I am very new to python, I am wonder in python3, is ther a differt between import threading verses import _thread? I've seen one or the other in..... More

Print this item

  Auto increment in Python Sqlite3
Posted by: kingram - Sep-14-2017, 10:07 PM - Forum: General Coding Help - Replies (1)

Hi. I want to set my id auto increment in sqlite3 in python 3.6

When i run my code i get this error:

[error]sqlite3.OperationalError: near "AUT..... More

Print this item

  JSON to sql(lite)
Posted by: BeerLover - Sep-14-2017, 09:07 PM - Forum: General Coding Help - Replies (3)

Dear all,

(Note: I don't have technical background Sad )
 
I have a big json file (Twiitter tweets), 2.6 GB. I need to work with that data an..... More

Print this item

  Getting EOF error with pexpect
Posted by: jjwstevenson - Sep-14-2017, 08:52 PM - Forum: General Coding Help - Replies (5)

Hi, I'm working on a script to;

log into a network device > get info of the interfaces > apply interface specific config.

This code works fine o..... More

Print this item

  Var Not defined
Posted by: RainbowWolfy - Sep-14-2017, 08:07 PM - Forum: General Coding Help - Replies (2)

So I'm pretty new to Python, although I got alot of experience in other languages.
I have a problem where my Attack variable is not being defined

..... More

Print this item

  Basic algebra in Python
Posted by: ejj28 - Sep-14-2017, 03:35 PM - Forum: General Coding Help - Replies (10)

Hi, how can I solve algebraic equations in python?
For example: 100*X=200, which would return 2.
Is there some sort of library for this?
Thanks!

Print this item

  Need help figuring out Sprite.Group Collision code
Posted by: PySam - Sep-14-2017, 03:09 PM - Forum: General Coding Help - Replies (3)

OK, so in my "sim" I've managed to assign "cells" or agents to a sprite group, and plants (for cells to eat and obtain food) into another group. After..... More

Print this item

  pygame problem
Posted by: Yair - Sep-14-2017, 03:00 PM - Forum: General Coding Help - Replies (7)

this is my code:

[python]
import pygame



pygame.init()


display_width = 800
display_height = 600

gameDisplay = pygame.display.set_mo..... More

Print this item

  Python Coding HELP!
Posted by: Ravenstown - Sep-14-2017, 02:58 PM - Forum: General Coding Help - Replies (3)

NOOB to Python

I need some help to reduce the size of my code by adding a loop which iterates on the blanks- I have been working on this code for w..... More

Print this item

  [split] running .py files on Windows
Posted by: metulburr - Sep-14-2017, 02:50 PM - Forum: General Coding Help - Replies (7)

split from discussion https://python-forum.io/Thread-run-py-file-on-Windows

I dont mean to hijack but i kind of am doing it
[quote]From there, you..... More

Print this item

  Please help - Code was working!
Posted by: bm0899 - Sep-14-2017, 01:52 PM - Forum: Web Scraping & Web Development - Replies (3)

Please find attached a python script. It was script was working last week but it does not work any longer.

The script pulls out data from an intern..... More

Print this item

  run .py file on Windows
Posted by: aidanikuz - Sep-14-2017, 01:17 PM - Forum: General Coding Help - Replies (4)

Hello, so I just installed python and I wanted to test the program and stuff. so I made a simple test file, hello.py which has its own folder on my de..... More

Print this item

  Error while running python script to get pixel points from google static map image
Posted by: python_newbee - Sep-14-2017, 01:09 PM - Forum: Data Science - Replies (3)

Error while running python script to get pixel points from google static map image. I got the python script from https://stackoverflow.com/questions/5..... More

Print this item

  Is any super keyword like java
Posted by: rajeev1729 - Sep-14-2017, 11:07 AM - Forum: General Coding Help - Replies (2)

how to print "Calling parent method" using Child object.
[python]
class Parent: # define parent class
def myMethod(self):
print ('..... More

Print this item

  Basic Coding Slays College Girl
Posted by: AnjyilLee - Sep-14-2017, 08:41 AM - Forum: Homework - Replies (5)

It is 4:30 in the morning. Been up since 8am yesterday and been running on 2 hours of sleep, coffee, and a Monster energy drink. I've seen that you gu..... More

Print this item

  Module import error
Posted by: CoolSchoolBoy - Sep-14-2017, 05:32 AM - Forum: General Coding Help - Replies (2)

Hello All. Trying to load a module into python 3, it keeps giving me error:
__
>>> import chaos
Traceback (most recent call last):
File "<pyshell#..... More

Print this item

  Number of cmds inside subprocess
Posted by: pannis - Sep-14-2017, 05:08 AM - Forum: General Coding Help - Replies (5)

Hi, I am trying to run more than 5 or 6 shell commands from my pyhton script.

Currently my psuedo code is below.

[python]
try:
_ = subpro..... More

Print this item

  IndexError?
Posted by: OmarSinno - Sep-14-2017, 04:59 AM - Forum: General Coding Help - Replies (2)

import sys
a= int(sys.argv[1])
b= int(sys.arv[2])
c= int(sys.argv[3])
inorder = a<b<c or a>b>c
print(inorder)
Anyone can help..... More

Print this item

  [newbie] question on what to put in () on target.write
Posted by: MattSS102 - Sep-14-2017, 03:33 AM - Forum: General Coding Help - Replies (5)

#I know how to put in line1 variable on line 25 (target.write(line1)), however when I try to put line2 in it I get an error. The error is "function ta..... More

Print this item

  Geany frustration how to deal with tabs and spaces and CR
Posted by: mlytle0 - Sep-14-2017, 02:14 AM - Forum: General Coding Help - Replies (2)

Not having a code problem (yet)
If I use 'enter' to create a new line, it places a carriage return in there, code doesn't run. Trying not to use tab..... More

Print this item

  ...
Posted by: 8bitbacon - Sep-14-2017, 12:35 AM - Forum: GUI - No Replies

.....

Print this item

  Need some help trying to get my Python mortgage amortization calculator to work prope
Posted by: IamSirAskAlot - Sep-13-2017, 11:26 PM - Forum: General Coding Help - Replies (4)

So, I will be starting a graduate program in Data Science in Spring 2018 and I am trying to get acquainted with Python before then, but I am having so..... More

Print this item

  stupidly easy hw that I need help with
Posted by: icantcodeforcrap - Sep-13-2017, 08:19 PM - Forum: Homework - Replies (5)

I have to do a stupid tip calculator hw assignment for my beginning coding class. It's literally only our second assignment, but I'm stuck. For some r..... More

Print this item

  I need serious help.
Posted by: forumer444 - Sep-13-2017, 08:10 PM - Forum: Homework - Replies (3)

So I'm more of an intermediate programmer in Java, but I've had to move to a new area in the middle of being in school and am now learning Python in m..... More

Print this item

  AttributeError: module 'sys' has no attribute 'maxint'
Posted by: rajeev1729 - Sep-13-2017, 05:28 PM - Forum: General Coding Help - Replies (4)

[python]import math; #For pow and sqrt
import sys;
from random import shuffle, uniform;

###_Pre-Processing_###
def ReadData(fileName):
#Rea..... More

Print this item

  my python is popping up the error FileNotFoundError: [WinError 3] ?
Posted by: srinivas135 - Sep-13-2017, 01:10 PM - Forum: General Coding Help - Replies (3)

import os
path="C:\\User\\Desktop\\sr.txt"
os.chdir(path)
retval=os.getcwd()
print("Directory changed successfully %s" %retval)
#can the members ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 21 minutes ago lary_p jefsummers Homework
  Please guide me to comple... 1 hour ago pbkurd pbkurd General Codin...
  [solved] re.split issue 1 hour ago paul18fr deanhystad General Codin...
  Backward compatibility qu... 8 hours ago yutaozhou noisefloor News and Disc...
  why is the image not show... Yesterday, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578926
  Tutorial Requ... 510177
  Web Scraping ... 441943
  Newbie with P... 385961
  New Users Int... 376788
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+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
TomTMH Today
pbkurd Today
Gichardaxora Today
cc123 Today
Jessicaadams Today

User Panel Messages

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