larray.IGroup

class larray.IGroup(key, name=None, axis=None)[source]

Index Group.

Represents a subset of indices of an axis.

Parameters:

key : key

Anything usable for indexing. A key should be either a single position, a sequence of positions, or a slice with integer bounds.

name : str, optional

Name of the group.

axis : int, str, Axis, optional

Axis for group.

__init__(key, name=None, axis=None)

Methods

__init__(key[, name, axis])
by(length[, step]) Split group into several groups of specified length.
containing(substring) Returns a group with all the labels containing the specified substring.
difference(other) Returns (set) difference of this label group and other.
endingwith(suffix) Returns a group with the labels ending with the specified string.
eval()
intersection(other) Returns (set) intersection of this label group and other.
matching(pattern) Returns a group with all the labels matching the specified pattern (regular expression).
named(name) Returns group with a different name.
retarget_to(target_axis) Retarget group to another axis.
set() Creates LSet from this group
startingwith(prefix) Returns a group with the labels starting with the specified string.
to_label()
translate([bound, stop]) compute position(s) of group
union(other) Returns (set) union of this label group and other.
with_axis(axis) Returns group with a different axis.