469,358 Members | 1,585 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

importing a csv file as a Numeric array

What's a good way of importing a csv text file of floats into a
Numeric array? I tried the csv module and it seems to work well so
long as I've ints. Does anyone have any suggestions / snippets that
work to import a csv file of floats into a Numeric array?

-Rahul
Mar 25 '08 #1
1 1897
En Tue, 25 Mar 2008 06:46:57 -0300, Rahul <rp*****@gmail.comescribió:
What's a good way of importing a csv text file of floats into a
Numeric array? I tried the csv module and it seems to work well so
long as I've ints. Does anyone have any suggestions / snippets that
work to import a csv file of floats into a Numeric array?
See the Cookbook at http://www.scipy.org/Cookbook/InputOutput - but I
don't know how much of that is applicable to the old Numeric library.
Robert Kern posted a fairly generic approach in this thread
http://groups.google.com/group/comp....5c364cae59127/

--
Gabriel Genellina

Mar 25 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by deko | last post: by
reply views Thread by Phil | last post: by
reply views Thread by beliavsky | last post: by
1 post views Thread by Nicolas Pernetty | last post: by
1 post views Thread by ajikoe | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.