larray.IGroup.containing
- IGroup.containing(substring) LGroup
Return a group with all the labels containing the specified substring.
- Parameters
- substringstr or Group
The substring to search for.
- Returns
- LGroup
Group containing all the labels containing the substring.
Examples
>>> from larray import Axis >>> people = Axis(['Bruce Wayne', 'Bruce Willis', 'Arthur Dent'], 'people') >>> group = people.startingwith('Bru') >>> group people['Bruce Wayne', 'Bruce Willis'] >>> group.containing('Will') people['Bruce Willis']