modin.pandas.Index.isin¶
- Index.isin() None [source]¶
Return a boolean array where the index values are in values.
Compute boolean array of whether each index value is found in the passed set of values. The length of the returned boolean array matches the length of the index.
- Parameters:
values (set or list-like) – Sought values.
level (str or int, optional) – Name or position of the index level to use (if the index is a MultiIndex).
- Returns:
NumPy array of boolean values.
- Return type:
np.ndarray[bool]
See also
Series.isin
Same for Series.
DataFrame.isin
Same method for DataFrames.
Notes
In the case of MultiIndex you must either specify values as a list-like object containing tuples that are the same length as the number of levels, or specify level. Otherwise it will raise a
ValueError
.If level is specified:
if it is the name of one and only one index level, use that level;
otherwise it should be a number indicating level position.