[Numpy-discussion] FYI: New "select-multiple-fields" behavior

Travis E. Oliphant oliphant at enthought.com
Wed Feb 11 23:53:54 EST 2009


Hi all,

As of r6358, I checked in the functionality to allow selection by 
multiple fields along with a couple of tests.

ary['field1', 'field3']  raises an error
ary[['field1', 'field3']] is the correct spelling and returns a copy of 
the data in those fields in a new array.


-Travis




More information about the NumPy-Discussion mailing list