[Numpy-discussion] BOF notes: Fernando's proposal: NumPy ndarray with named axes

Joshua Holbrook josh.holbrook@gmail....
Thu Jul 8 17:09:08 CDT 2010


> Then how is this not different than a record array?

How is this the *same* as a record array?

--Josh

On Thu, Jul 8, 2010 at 2:03 PM, Rob Speer <rspeer@mit.edu> wrote:
>> 3. That the  best solution to allow integer ticks while retaining
>> 'normal' indexing semantics for integers would be to have
>>
>> arr[int] -> normal indexing
>> arr.somethin[int] -> tick-based indexing, where an int can mean anything.
>
> All right, it's clear lots of people like it better this way, so I
> made arr.named use square brackets instead of parentheses.
>
> Before:
>>>> arr.country.named('Spain').year.named(slice(1994, 2010))
> After:
>>>> arr.country.named['Spain'].year.named[1994:2010]
>
> -- Rob
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>


More information about the NumPy-Discussion mailing list