[Numpy-discussion] Another dumb structured array question

David Warde-Farley dwf at cs.toronto.edu
Tue Sep 29 16:32:28 EDT 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