← Back to team overview

larry-discuss team mailing list archive

Label indexing

 

After a long thread on how to support label indexing in larry, here's
where we ended up:

1. Remove the indexing of labels by strings from the trunk.

2. Create a method larry.lix that can be used for label indexing like this:

lar.lix['a']
lar.lix['a':]
lar.lix[:, 'a']
lar.lix['a', 'b', 'c':]

Only labels and slices are allowed. Inside the function the labels
will be converted to indices and then a call will be made to
lar[converted_index].

3. Indexing with more than one list will do rectangular indexing, not
fancy indexing.

OK, that's it. I'll start. I'll need help with #3



Follow ups