[Numpy-discussion] Another dumb structured array question

David Warde-Farley dwf@cs.toronto....
Tue Sep 29 15:32:28 CDT 2009


Is there an easy way to get multiple subdtypes out? e.g. if I have a  
dtype

dtype([('foo', 'i4'), ('bar', 'i8'), ('baz', 'S100')])

and an array with that dtype, is there a way to only get the 'foo' and  
'bar'?

arr[('foo','bar')] doesn't seem to work.

David


More information about the NumPy-Discussion mailing list