eelbrain.Factor.startswith¶
-
Factor.
startswith
(substr)¶ An index that is true for all cases whose name starts with
substr
- Parameters
substr (
str
) – String for selecting cells that start with substr.- Returns
Index that is
True
for all cases whose label starts withsubstr
.- Return type
index
Examples
>>> a = Factor(['a1', 'a2', 'b1', 'b2']) >>> a.startswith('b') array([False, False, True, True], dtype=bool)