diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bfdfeabbd389c..4955513246626 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10563,13 +10563,13 @@ def isin(self, values) -> DataFrame: When ``values`` is a Series or DataFrame the index and column must match. Note that 'falcon' does not match based on the number of legs - in df2. + in other. - >>> other = pd.DataFrame({'num_legs': [8, 2], 'num_wings': [0, 2]}, + >>> other = pd.DataFrame({'num_legs': [8, 3], 'num_wings': [0, 2]}, ... index=['spider', 'falcon']) >>> df.isin(other) num_legs num_wings - falcon True True + falcon False True dog False False """ if isinstance(values, dict):