Series.isin()
pandas.Series.isin
-
Series.isin(values)
-
Return a boolean
Series
showing whether each element in theSeries
is exactly contained in the passed sequence ofvalues
.Parameters: values : set or list-like
The sequence of values to test. Passing in a single string will raise a
TypeError
. Instead, turn a single string into alist
of one element.