pandas.Index.isin
pandas 3.1.1 · Index objects · method
Test membership and return a boolean result for each value.
Call syntax
Index.isin(values, level=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
values |
Required Positional or keyword |
set or list-like Supply values to transform, match, aggregate, or use as data. |
level |
Optional Positional or keyword Default None |
str or int Choose an index level by name or integer position. |
Returns
np.ndarray[bool]