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

Travis E. Oliphant oliphant@enthought....
Wed Feb 11 22:53:54 CST 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