importing a csv file as a Numeric array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rahul

    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
  • Gabriel Genellina

    #2
    Re: importing a csv file as a Numeric array

    En Tue, 25 Mar 2008 06:46:57 -0300, Rahul <rpnabar@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


    --
    Gabriel Genellina

    Comment

    Working...