problem in python pandas module

length power elearn2014 at gmail.com
Thu Apr 10 01:03:18 EDT 2014


the problem about pandas


the data is in the attachment,please download it and save as "test.ansi"

import pandas as pd
pd.read_csv("g:\\test.ansi",sep=",",encoding="gbk")


1.how to read data properly?
there is a balnk line by every data of row.
how can i don't read any   NaN  NaN         NaN ?

2.how to display all data in the console?
there are [301 rows x 3 columns],only 59 of them displayed,how to display
all 301 rows?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140410/45ce402d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ansi
Type: application/octet-stream
Size: 3437 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20140410/45ce402d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pandas.JPG
Type: image/jpeg
Size: 106684 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20140410/45ce402d/attachment.jpe>


More information about the Python-list mailing list