We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b47cb9 commit 4d134b0Copy full SHA for 4d134b0
pandas/core/series.py
@@ -4622,6 +4622,15 @@ def isin(self, values) -> "Series":
4622
4 True
4623
5 False
4624
Name: animal, dtype: bool
4625
+
4626
+ Strings and integers are distinct and are therefore not comparable:
4627
4628
+ >>> pd.Series([1]).isin(['1'])
4629
+ 0 False
4630
+ dtype: bool
4631
+ >>> pd.Series([1.1]).isin(['1.1'])
4632
4633
4634
"""
4635
result = algorithms.isin(self._values, values)
4636
return self._constructor(result, index=self.index).__finalize__(
0 commit comments