On 19/10/13 15:29, Manish Tripathi wrote:
I am trying to import a csv file in Pandas but it throws an error.

This is the second time I've seen pandas mentioned recedntly I really must go and look it up to find out what it is...

Meanwhile can you clarify what you mean by importing the csv file?
Are you using a Pandas facility to do this?
Or are you using Python code? And if the latter are you using the csv module - striongly recommended for any csv work....


|df=pd.read_csv(filename,encoding='cp1252')

I'm assuming from this it is some kind of Pandas feature?
Have you tried asking on a Pandas mailing list/forum?
This group is targetted at standard library and core
language, so it will be a matter of luck if you find
anyone who uses pandas and can help.

....OK, I found the Pandas page, it's for data analysis/modelling.
It has a StackOverflow link for asking questions so if you
don't get help here you should try that next.

I'm assuming you have read the docs on csv input here:

http://pandas.pydata.org/pandas-docs/stable/io.html#io-read-csv-table

There are way too many options for me to read through
so I'll leave it to those who know!

HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to