Skip to content

Commit 735f1b7

Browse files
update docstring series.isin
1 parent 8497029 commit 735f1b7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pandas/core/series.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,9 +2745,8 @@ def _take(self, indices, axis=0, convert=True, is_copy=False):
27452745

27462746
def isin(self, values):
27472747
"""
2748-
Return a boolean :class:`~pandas.Series` showing whether each element
2749-
in the :class:`~pandas.Series` is exactly contained in the passed
2750-
sequence of ``values``.
2748+
Return a boolean ``Series`` showing whether each element in the
2749+
``Series`` is exactly contained in the passed sequence of ``values``.
27512750
27522751
Parameters
27532752
----------
@@ -2758,7 +2757,7 @@ def isin(self, values):
27582757
27592758
.. versionadded:: 0.18.1
27602759
2761-
Support for values as a set
2760+
Support for values as a set.
27622761
27632762
Returns
27642763
-------
@@ -2771,7 +2770,7 @@ def isin(self, values):
27712770
27722771
See Also
27732772
--------
2774-
pandas.DataFrame.isin
2773+
pandas.DataFrame.isin : equivalent method on DataFrame
27752774
27762775
Examples
27772776
--------
@@ -2791,7 +2790,6 @@ def isin(self, values):
27912790
1 False
27922791
2 False
27932792
dtype: bool
2794-
27952793
"""
27962794
result = algorithms.isin(com._values_from_object(self), values)
27972795
return self._constructor(result, index=self.index).__finalize__(self)

0 commit comments

Comments
 (0)