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

Ryan May rmay31@gmail....
Mon Jul 12 09:48:11 CDT 2010


On Mon, Jul 12, 2010 at 8:04 AM, Neil Crighton <neilcrighton@gmail.com> wrote:
> Gael Varoquaux <gael.varoquaux <at> normalesup.org> writes:
>> I do such manipulation all the time, and keeping track of which axis is
>> what is fairly tedious and error prone. It would be much nicer to be able
>> to write:
>>
>>     data.ax_day.mean(axis=0)
>>     data.ax_hour.mean(axis=0)
>>
>
> Thanks, that's a really nice description. Instead of
>
> data.ax_day.mean(axis=0)
>
> I think it would be clearer to do something like
>
> data.mean(axis='day')

IIRC somewhere, at least at the BOF, this exact syntax was intended to
be supported.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma


More information about the NumPy-Discussion mailing list