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,945
» Latest member: susan
» Forum threads: 38,725
» Forum posts: 175,521

Full Statistics

Online Users
There are currently 81 online users.
» 2 Member(s) | 73 Guest(s)
Bing, AOL, Google, Applebot, AOL, whimsyslug8Dip, snippsat

Latest Threads
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
1 hour ago
» Replies: 0
» Views: 13
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: susan
3 hours ago
» Replies: 4
» Views: 9,082
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
6 hours ago
» Replies: 2
» Views: 414
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
7 hours ago
» Replies: 0
» Views: 63
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 08:56 PM
» Replies: 9
» Views: 557
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,778
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,099
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,457
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,019
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,768

 
  how to deal with varying value-counts().keys() in pandas dataframe
Posted by: dilmailid - May-16-2018, 06:19 AM - Forum: Data Science - Replies (4)

i ahve used following code to save value-counts in separate files.it work for two values.but my dataframe conatins maximum 4 keys ,it varies like(1978..... More

Print this item

  Join the Python Standard Library to my project
Posted by: sylas - May-16-2018, 05:52 AM - Forum: General Coding Help - Replies (1)

Hi all! I am on Atom. My program cannot import pygame(for instance). I think that if I could upload the Python Standard Library, and join it to my pro..... More

Print this item

  Event for wx.grid
Posted by: ian - May-16-2018, 02:09 AM - Forum: GUI - Replies (1)

I use wx.grid.Grid on a wx form.
I need to get an event fired only when I hit Enter key after typing in text in a grid cell. Is it possible? Thanks.

Print this item

  Question with while loop placement
Posted by: Tunechi - May-15-2018, 10:41 PM - Forum: General Coding Help - Replies (2)

I'm trying to make a game that has a "fight" loop that it runs when the user encounters a demon. I pretty much have a basic version done but was wonde..... More

Print this item

  csv to array
Posted by: Vblaze10 - May-15-2018, 09:53 PM - Forum: Data Science - Replies (5)

I am trying to save the .csv file data into array and than apply my logic

[img]file:///home/blaze/Pictures/Screenshot%20from%202018-05-16%2003-07-..... More

Print this item

  Filtering by city /Question by beginner
Posted by: Jack_Sparrow - May-15-2018, 06:47 PM - Forum: Data Science - Replies (1)

Hi there,
I have a task:

I have 3 different csv files (chicago.csv, ney_york.csv and washington csv.) All three files have the same columns with..... More

Print this item

  Computation
Posted by: Vblaze10 - May-15-2018, 06:30 PM - Forum: Homework - Replies (1)

I have an array

A=[1,2,0,3]
B=[10,11,12,13]
X=[5,6,4,3]

and two constants
a=0
b=1
I want to write a program which can compute the above..... More

Print this item

  sqlite3 table structure and db tables
Posted by: pythonNoob - May-15-2018, 05:55 PM - Forum: General Coding Help - Replies (7)

I'm working on a small program to keep track of library books and I'm doing the program in python3 and sqlite3. I'm not very far into the program at a..... More

Print this item

  problem with print format
Posted by: anna - May-15-2018, 05:52 PM - Forum: General Coding Help - Replies (7)

Hi All,

I am not able to print multiple variable output on single line.

[python]import telnetlib

HOST = "10.10.1.10"
user = "test"
password..... More

Print this item

  Indentationerror
Posted by: Jack_Sparrow - May-15-2018, 05:41 PM - Forum: General Coding Help - Replies (4)

Hi there
I have followed error:

Indentationerror: unindent does not match any outer indentation level


It is all about this line..... More

Print this item

  Split docx document by page number
Posted by: sage - May-15-2018, 05:22 PM - Forum: General Coding Help - Replies (1)

I am trying to split a word document by page number but havenot got any success yet Cry , can anyone suggest any library to split a docx document?..... More

Print this item

  python -m http.server giving invalid syntax
Posted by: echowit - May-15-2018, 05:07 PM - Forum: Networking - Replies (5)

This should say it all: İmage


According to all the X3DOM literature this should be a simple do.

Python was insta..... More

Print this item

  Converting days to years in loop while computing values across grid cells
Posted by: Lightning1800 - May-15-2018, 04:38 PM - Forum: Data Science - Replies (2)

Greetings,

Using a for loop, I recently tried to compute the maximum values across grid cells (which are composed of 64 degrees latitude and 128 de..... More

Print this item

  Cannot use pypy on Python3 code
Posted by: ErnestTBass - May-15-2018, 02:23 PM - Forum: Data Science - Replies (11)

I am trying pypy on some code that I believe is Python3 code.

When I tried it on some code that worked under Python3 i got an error.
The same erro..... More

Print this item

  May I ask how is this going?
Posted by: lvlinux - May-15-2018, 01:12 PM - Forum: Web Scraping & Web Development - Replies (3)

[python]from django.db import models

# Create your models here.

class Topic(models.Model):
"""用户学习的主题"""
text = models.CharField(max_l..... More

Print this item

  Vulnerabilities found in OpenPGP
Posted by: wavic - May-15-2018, 10:24 AM - Forum: Bar - No Replies

It's not Python related so I post it here.
Here it is: https://efail.de/

Print this item

  Posting zip file on HTTP network using Python2.7
Posted by: deepti92 - May-15-2018, 10:05 AM - Forum: General Coding Help - Replies (1)

Hi,

We need to post a zip file on HTTP using Python 2.7.

We are using the below code which throwing exception:

[python]post_data = open(zipPa..... More

Print this item

  Shared queues
Posted by: l00p1n6 - May-15-2018, 08:40 AM - Forum: General Coding Help - Replies (3)

Hi,

I am trying to share a multiprocessing dictionary (Manager().dict()) of multiprocessing Queues (Manager().Queue()) between multiple python inst..... More

Print this item

  paths
Posted by: Scott - May-15-2018, 08:34 AM - Forum: Data Science - Replies (13)

Hi everyone,

I am having a lot of trouble with setting up paths in my code to pull data from. My most recent problem is with this code below

[py..... More

Print this item

  "Slicing" number
Posted by: ozs - May-15-2018, 07:23 AM - Forum: General Coding Help - Replies (2)

Hi all,

what is the best way to "slice" a number?
I mean, I want to get all the digits of a number.

I want something like this:

[python]
num = 123..... More

Print this item

  Python Bot Leave Server
Posted by: Demotry - May-15-2018, 07:15 AM - Forum: General Coding Help - Replies (2)

I installed my bot in my friend's discord server. Now he kicked me from server so i need to block my bot to his server or i need to make my bot to lea..... More

Print this item

  if- elif- and condition issue
Posted by: PrateekG - May-15-2018, 05:33 AM - Forum: Data Science - Replies (4)

Hi All,

Need your help on one issue.
I have a dataframe 'df' which has 3 columns of 'object' data type- opt1,opt2,opt3
Now I need to create a new..... More

Print this item

  Code error - new user
Posted by: CarlG - May-15-2018, 04:31 AM - Forum: Data Science - Replies (4)

I am getting this error, and for the life of me, cant figure it out. would appreicate your kind help. Loving Python, but it seems temperamental for a ..... More

Print this item

  Using Monte Carlo Simulation to Approximate pi
Posted by: chris1888 - May-15-2018, 04:21 AM - Forum: Homework - Replies (1)

Hi! I am a college student and self studying python by using the "how to think like a computer scientist-interactive version". In the lab session in t..... More

Print this item

  How to call one python script and use its output in another python script
Posted by: lravikumarvsp - May-15-2018, 03:05 AM - Forum: General Coding Help - Replies (3)

Hi,

I have two python scripts and I want to call 1st python script and use the output of this script in another python script.

For example:
I h..... More

Print this item

  Need help excluding Named Entity (NE) and proper nouns (NNE) from text analysis
Posted by: disruptfwd8 - May-15-2018, 12:10 AM - Forum: General Coding Help - No Replies

Need help excluding Named Entity (NE) and proper nouns (NNE) from text.

[python]import nltk
from nltk.tokenize import word_tokenize
from nltk.corpus ..... More

Print this item

  IndentationError: unexpected indent
Posted by: Grin - May-14-2018, 09:57 PM - Forum: Data Science - Replies (3)

Hi All.

I'm trying to run some models on a dataset for college assignments and having a problem with the following commands. I'm typing them direct..... More

Print this item

  Geany 1.25 terminal not showing whitespace
Posted by: hudabaig - May-14-2018, 09:45 PM - Forum: General Coding Help - Replies (1)

Hello,

I am using Python 3.5 with Geany 1.25.

One of the exercises I cam across while studying python as a beginner was stripping whitespace fro..... More

Print this item

  Looping in a 3D matrix - desperate for assistance!
Posted by: Lightning1800 - May-14-2018, 08:32 PM - Forum: Data Science - Replies (15)

Hi there,

I would like to compute all annual maximum values in a 3D matrix using a for loop. To be more specific, the variable "Quantity" is a 3D m..... More

Print this item

  Login/register system.
Posted by: Exploiterz - May-14-2018, 08:03 PM - Forum: Homework - Replies (5)

Hello! I'm quite new to python and I was wondering if there was any way to make a somewhat simple register/login system where the information get's st..... More

Print this item

  Error message when importing jsonlines library
Posted by: vakil67 - May-14-2018, 07:46 PM - Forum: General Coding Help - Replies (5)

I'm using Jupyter Notebooks with version 2.7

I'm trying to import three libraries, requests, json, and jsonlines.

When I post
[python]import r..... More

Print this item

  Python tutorial for beginner's
Posted by: kuhak8 - May-14-2018, 07:45 PM - Forum: Tutorial Requests and Submissions - Replies (3)

I started a tutorial blog about python tutorial. so if you want to learn python then please go to my website.
website link - ..... More

Print this item

  Add column headers to dataframe
Posted by: chisox721 - May-14-2018, 06:13 PM - Forum: Data Science - Replies (5)

Hey guys-I'm working on a script that grabs weather information from different locations. The only thing I'm missing within the dataframe is replacing..... More

Print this item

  Combinations of list of lists
Posted by: dannyH - May-14-2018, 05:29 PM - Forum: General Coding Help - Replies (2)

I have a list of 25 lists of integers:
L = [[1,2,3], [4,5,6], [7,8],[9], …]


I want to create all possible combinations using all the integers fr..... More

Print this item

  for loop in while loop
Posted by: lravikumarvsp - May-14-2018, 05:07 PM - Forum: General Coding Help - Replies (5)

[python]
import glob
import os
a = ['ACM','ACX','GSK']
i = 0
while i < len(a):
print a[i]
b=str(a[i])
os.chdir('/ai2/data/dev/admin/inf/')..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  IBKR Purchasing code issu... 1 hour ago compuman145 compuman145 General Codin...
  Creating a Mindmap progra... 3 hours ago J_Miller susan General Codin...
  A coding beginner needs h... 6 hours ago Littlefish Littlefish General Codin...
  Is the interpreter that c... 7 hours ago helendamdam helendamdam General Codin...
  Using a For Loop to subtr... Yesterday, 20:56 Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
Most views
  The best Prog... 576686
  Tutorial Requ... 498830
  Web Scraping ... 440509
  Newbie with P... 384455
  New Users Int... 368068
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+ 12087
buran 8175
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
susan Today
jatinkumar12 Today
angelhealu504 Today
helendamdam Today
pllrdvalery Yesterday

User Panel Messages

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