Skip to content

Commit b3744a1

Browse files
beepscorejorisvandenbossche
authored andcommitted
DOC: isin() docstring change DataFrame to pd.DataFrame (pandas-dev#21403)
1 parent c8f27cc commit b3744a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/frame.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7284,11 +7284,11 @@ def isin(self, values):
72847284
When ``values`` is a Series or DataFrame:
72857285
72867286
>>> df = pd.DataFrame({'A': [1, 2, 3], 'B': ['a', 'b', 'f']})
7287-
>>> other = DataFrame({'A': [1, 3, 3, 2], 'B': ['e', 'f', 'f', 'e']})
7288-
>>> df.isin(other)
7287+
>>> df2 = pd.DataFrame({'A': [1, 3, 3, 2], 'B': ['e', 'f', 'f', 'e']})
7288+
>>> df.isin(df2)
72897289
A B
72907290
0 True False
7291-
1 False False # Column A in `other` has a 3, but not at index 1.
7291+
1 False False # Column A in `df2` has a 3, but not at index 1.
72927292
2 True True
72937293
"""
72947294
if isinstance(values, dict):

0 commit comments

Comments
 (0)