Re: importing a csv file as a Numeric array

2008-03-25 Thread Gabriel Genellina
En Tue, 25 Mar 2008 06:46:57 -0300, Rahul <[EMAIL PROTECTED]> escribió: > 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 c

Re: Importing a csv file

2007-04-30 Thread Tim Golden
John Machin wrote: > On Apr 30, 7:21 pm, Tim Golden <[EMAIL PROTECTED]> wrote: >> sagar wrote: >>> Hi all , >>>I want to read data in a csv file using the python scripts. >>> when i gave the following code : >>> import csv >>> reader = csv.reader(open("some.csv", "rb")) >>> for row in

Re: Importing a csv file

2007-04-30 Thread John Machin
On Apr 30, 7:21 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > sagar wrote: > > Hi all , > >I want to read data in a csv file using the python scripts. > > when i gave the following code : > > import csv > > reader = csv.reader(open("some.csv", "rb")) > > for row in reader: > > print

Re: Importing a csv file

2007-04-30 Thread Tim Golden
sagar wrote: > Hi all , >I want to read data in a csv file using the python scripts. > when i gave the following code : > import csv > reader = csv.reader(open("some.csv", "rb")) > for row in reader: > print row > > it is showing : > > Traceback (most recent call last): > File