On Sun, Jun 27, 2010 at 8:26 AM, sam tygier wrote:
> Hello
>
> A while ago there was a discussion about field order when accessing
> recarrays. eg:
>
x = np.array([(1.5,2.5,(1.0,2.0)),(3.,4.,(4.,5.)),(1.,3.,(2.,6.))],
> dtype=[('x','f4'),('y',np.float32),('value','f4',(2,2))])
x
Hello
A while ago there was a discussion about field order when accessing recarrays.
eg:
>>> x = np.array([(1.5,2.5,(1.0,2.0)),(3.,4.,(4.,5.)),(1.,3.,(2.,6.))],
dtype=[('x','f4'),('y',np.float32),('value','f4',(2,2))])
>>> x[['x','y']]
array([(1.5, 2.5), (3.0, 4.0), (1.0, 3.0)],
d