larray.Axis.endingwith¶
-
Axis.
endingwith
(self, suffix)[source]¶ Returns a group with the labels ending with the specified string.
- Parameters
- suffixstr or Group
The suffix to search for.
- Returns
- LGroup
Group containing all the labels ending with the given string.
Examples
>>> people = Axis(['Bruce Wayne', 'Bruce Willis', 'Waldo', 'Arthur Dent', 'Harvey Dent'], 'people') >>> people.endingwith('Dent') people['Arthur Dent', 'Harvey Dent']