eelbrain.Factor.endswith

Factor.endswith(self, substr)

An index that is true for all cases whose name ends with substr

Parameters:
substr : str

String for selecting cells that end with substr.

Returns:
idx : boolean array, len = len(self)

Index that is true wherever the value ends with substr.

Examples

>>> a = Factor(['a1', 'a2', 'b1', 'b2'])
>>> a.endswith('1')
array([True, False,  True,  False], dtype=bool)