Skip to content
Prev Previous commit
Update series.py
  • Loading branch information
jorisvandenbossche authored Mar 10, 2018
commit 0cfbefb9d27bf7809e1d79d08731b118174cf7fd
10 changes: 5 additions & 5 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2745,21 +2745,21 @@ def _take(self, indices, axis=0, convert=True, is_copy=False):

def isin(self, values):
"""
Check whether ``values`` are contained in Series.
Check whether `values` are contained in Series.

Return a boolean Series showing whether each element in the Series
matches an element in the passed sequence of ``values`` exactly.
matches an element in the passed sequence of `values` exactly.

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 a
``list`` of one element.
list of one element.

.. versionadded:: 0.18.1

Support for values as a set.
Support for values as a set.

Returns
-------
Expand All @@ -2768,7 +2768,7 @@ def isin(self, values):
Raises
------
TypeError
* If ``values`` is a string
* If `values` is a string

See Also
--------
Expand Down