[Numpy-discussion] BOF notes: Fernando's proposal: NumPy ndarray with named axes
Thu Jul 8 17:00:02 CDT 2010
On Thu, Jul 8, 2010 at 4:39 PM, Rob Speer <firstname.lastname@example.org> wrote:
>>> Still, I have a question. Did you also agree that this should forcibly index
>>> through ticks?
>>> arr.something[int] -> tick-based indexing
> I feel like people are talking about different things because it's
> unclear what the .something is.
> If the .something is an axis name, then no. arr.year should get the
> first year in the data, not the data from the "year 0".
> If the .something is the attribute we use for named lookup (such as
> ".named"), then yes. arr.named should get whatever tick is named
> 2006 on the first axis.
> -- Rob
Then how is this not different than a record array?
Actually for that matter I have not seem anything that is
differentiates this from a record array. So please avoid working with
1-d case :-)
While I understand everyone wants to address this, it is rather
important to avoid having different rules than the rest of numpy. This
probably means that labels must be hashable strings - which I think is
consistent with R and SAS data structures.
More information about the NumPy-Discussion