diff --git a/pandas/core/series.py b/pandas/core/series.py index b248899a171ff..3888194305d76 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -4599,6 +4599,15 @@ def isin(self, values) -> Series: 4 True 5 False Name: animal, dtype: bool + + Strings and integers are distinct and are therefore not comparable: + + >>> pd.Series([1]).isin(['1']) + 0 False + dtype: bool + >>> pd.Series([1.1]).isin(['1.1']) + 0 False + dtype: bool """ result = algorithms.isin(self._values, values) return self._constructor(result, index=self.index).__finalize__(