pandas.DataFrame.isin
pandas 3.1.1 · DataFrame · method
Test membership and return a boolean result for each value.
Call syntax
DataFrame.isin(values)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 |
iterable, Series, DataFrame or dict Supply values to transform, match, aggregate, or use as data. |
Returns
DataFrame