On Wed, Feb 4, 2009 at 2:50 PM, Pierre GM wrote:
> All,
> I'm a tad puzzled by the following behavior (I'm trying to correct a
> bug in genfromtxt):
>
> I'm creating an empty structured ndarray, using np.object as dtype.
>
> >>> a = np.empty(1,dtype=[('',np.object)])
> array([(None,)],
> dt
All,
I'm a tad puzzled by the following behavior (I'm trying to correct a
bug in genfromtxt):
I'm creating an empty structured ndarray, using np.object as dtype.
>>> a = np.empty(1,dtype=[('',np.object)])
array([(None,)],
dtype=[('f0', '|O4')])
Now, I'd like to rename the field:
>>> a