Re: [Numpy-discussion] Concepts for masked/missing data

2011-06-26 Thread Travis Oliphant
I haven't commented yet on the mailing list because of time pressures although I have spoken to Mark as often as I can --- and have encouraged him to pursue his ideas and discuss them with the community. The Numeric Python discussion list has a long history of great dialogue to try and bring ou

Re: [Numpy-discussion] data type specification when using numpy.genfromtxt

2011-06-26 Thread Chao YUE
*Hi Derek, Thanks very much for your quick reply. I make a short summary of what I've tried. Actually the *['S10'] + [ float for n in range(48) ] *only* *works when you explicitly specify the columns to be read, and genfromtxt cannot automatically determine the type* *if you don't specify the type

Re: [Numpy-discussion] data type specification when using numpy.genfromtxt

2011-06-26 Thread Benjamin Root
On Sun, Jun 26, 2011 at 2:27 PM, Derek Homeier < de...@astro.physik.uni-goettingen.de> wrote: > On 26.06.2011, at 8:48PM, Chao YUE wrote: > > > I want to read a csv file with many (49) columns, the first column is > string and remaning can be float. > > how can I avoid type in like > > > > data=nu

Re: [Numpy-discussion] data type specification when using numpy.genfromtxt

2011-06-26 Thread Derek Homeier
On 26.06.2011, at 8:48PM, Chao YUE wrote: > I want to read a csv file with many (49) columns, the first column is string > and remaning can be float. > how can I avoid type in like > > data=numpy.genfromtxt('data.csv',delimiter=';',names=True, dtype=(S10, float, > float, ..)) > > Can I ju

[Numpy-discussion] data type specification when using numpy.genfromtxt

2011-06-26 Thread Chao YUE
Dear all numpy users, I want to read a csv file with many (49) columns, the first column is string and remaning can be float. how can I avoid type in like data=numpy.genfromtxt('data.csv',delimiter=';',names=True, dtype=(S10, float, float, ..)) Can I just specify the type of first cloumn is