[Tutor] Reading CSV files in Pandas
John Steedman
johnsteedman360 at gmail.com
Sun Oct 20 20:19:35 CEST 2013
I have in front of me a copy an (unread, borrowed) copy of "Python for
Data Analysis". Well, on page 104, there is the start of an answer.
Pandas : has two useful functions: read_csv and read_table
Numpy : see np.loadtxt and np.genfromtxt
There is an example for using the first numpy function:
arr = np.loadtxt ( fileName, delimiter = ',' )
This information from Python for Data Analysis , author: Wes McKinney
published by O'Reilly - a succinct, useful-looking book.
On Sun, Oct 20, 2013 at 7:05 PM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> On 20/10/13 11:30, Matthew Ngaha wrote:
>>
>> Does pandas do the same thing numpy does?
>
>
> Pandas is more about analysis of big data volumes rather than complex
> calculations. eg statistical analysis and data mining.
>
> As such it's closer to R than to numpy in its function, so far as I can
> tell. (Although it uses numpy under the covers).
>
>
> --
> 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 at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list