Skip to content

Commit 58da4b0

Browse files
authored
DOC: Add notes section to .isin() docs (#59201)
* Add note to doc * Rephrase
1 parent 16e9a3e commit 58da4b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/frame.py

+5
Original file line numberDiff line numberDiff line change
@@ -13328,6 +13328,11 @@ def isin(self, values: Series | DataFrame | Sequence | Mapping) -> DataFrame:
1332813328
Series.str.contains: Test if pattern or regex is contained within a
1332913329
string of a Series or Index.
1333013330
13331+
Notes
13332+
-----
13333+
``__iter__`` is used (and not ``__contains__``) to iterate over values
13334+
when checking if it contains the elements in DataFrame.
13335+
1333113336
Examples
1333213337
--------
1333313338
>>> df = pd.DataFrame(

0 commit comments

Comments
 (0)