[SciPy-User] How to specify the dtype in IO
nicky van foreest
Thu Apr 22 03:14:00 CDT 2010
Have you tried the csv module? This is part of some code that I use:
reader = csv.reader(open("dummy.csv"))
for row in reader:
Id = str(row)
Thus, you can determine the format of each column specifically.
On 21 April 2010 20:32, Leon Sit <firstname.lastname@example.org> wrote:
> Hi All
> I have a csv file with columns of the following dtype
> int8, int8, int8, float, float, ............
> and the column size is arbitrary. Is there a way to specific the dtype
> in genfromtxt() such that it knows the first three column is int and
> float otherwise?
> SciPy-User mailing list
More information about the SciPy-User