On Thu, Jul 8, 2010 at 18:00, Bruce Southey <bsout...@gmail.com> wrote: > On Thu, Jul 8, 2010 at 4:39 PM, Rob Speer <rsp...@mit.edu> wrote: >>>> Still, I have a question. Did you also agree that this should forcibly >>>> index >>>> through ticks? >>>> >>>> arr.something[int] -> tick-based indexing >>>> >>> >>> Yes. >> >> 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[0] 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[2006] should get whatever tick is named >> 2006 on the first axis. >> -- Rob >> _______________________________________________ > > Then how is this not different than a record array?
A record array lets you label exactly one notional "axis" (which isn't actually an axis as far as numpy is concerned). This lets you label all of the axes in a multidimensional array. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion