eelbrain.Factor.isin¶
-
Factor.
isin
(self, values)¶ Find the index of entries matching one of the
values
Returns: - index : array of bool
For each case True if the value is in values, else False.
Examples
>>> f = Factor('aabbcc') >>> f.isin(('b', 'c')) array([False, False, True, True, True, True], dtype=bool)