[Numpy-discussion] dtype names and titles
Christopher Hanley
chanley at stsci.edu
Mon Feb 13 10:57:03 EST 2006
N. Volbers wrote:
>
> By the way, is there an easy way to access a field vector by its index?
> Right now I retrieve the field name from dtype.fields[-1][index] and
> then return the 'column' by using myarray[name].
Travis,
Perhaps we could add a field method to recarray like numarray's? This
would allow access by both field name and "column" index. This would be
nice for people who are using this convention and are making the switch
from numarray.
Chris
More information about the NumPy-Discussion
mailing list