[Numpy-discussion] Datarray BoF, part2
Keith Goodman
kwgoodman at gmail.com
Wed Jul 21 14:08:56 EDT 2010
On Wed, Jul 21, 2010 at 10:58 AM, M Trumpis <mtrumpis at berkeley.edu> wrote:
> Separately, regarding the permissible axis labels, I think we must not
> allow any enumerated axis labels (ie, ints and floats). I don't
> remember if there was a consensus about that yesterday. We don't have
> the flexibility in the ndarray API to allow for the expression
> darr.method(axis=2) to mean not the 2nd dimension, but the Axis with
> label==2
So the axis label rule could be either:
1. str only
2. Any hashable object except int or float
#1 is looking better and better. Plus you already coded it :)
More information about the NumPy-Discussion
mailing list