We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0b1316 commit d175d21Copy full SHA for d175d21
pandas/core/series.py
@@ -4599,6 +4599,15 @@ def isin(self, values) -> Series:
4599
4 True
4600
5 False
4601
Name: animal, dtype: bool
4602
+
4603
+ Strings and integers are distinct and are therefore not comparable:
4604
4605
+ >>> pd.Series([1]).isin(['1'])
4606
+ 0 False
4607
+ dtype: bool
4608
+ >>> pd.Series([1.1]).isin(['1.1'])
4609
4610
4611
"""
4612
result = algorithms.isin(self._values, values)
4613
return self._constructor(result, index=self.index).__finalize__(
0 commit comments