larray.Axis.__getitem__¶
-
Axis.__getitem__(key) → Union[larray.core.group.LGroup, List[larray.core.group.Group], Tuple[larray.core.group.Group, ...]][source]¶ Returns a group (list or unique element) of label(s) usable in .sum or .filter
key is a label-based key (other axis, slice and fancy indexing are supported)
Returns: - Group
group containing selected label(s)/position(s).
Notes
key is label-based (slice and fancy indexing are supported)