From 7eab9af3505307b74e4a70e231a75c366af9bb9c Mon Sep 17 00:00:00 2001 From: Ana Secuiu Date: Sun, 7 Jul 2024 16:47:42 +0100 Subject: [PATCH 1/2] Add note to doc --- pandas/core/frame.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fab798dd617b7..ee24f1f290804 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -13328,6 +13328,11 @@ def isin(self, values: Series | DataFrame | Sequence | Mapping) -> DataFrame: Series.str.contains: Test if pattern or regex is contained within a string of a Series or Index. + Notes + ----- + We use `__iter__` (and not `__contains__`) to iterate over values + when checking if it contains the elements in DataFrame. + Examples -------- >>> df = pd.DataFrame( From a859dd2231fbe4790a211f9331003eaa2af4f2f6 Mon Sep 17 00:00:00 2001 From: Ana Secuiu Date: Mon, 8 Jul 2024 16:57:24 +0100 Subject: [PATCH 2/2] Rephrase --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ee24f1f290804..5ef663564a016 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -13330,7 +13330,7 @@ def isin(self, values: Series | DataFrame | Sequence | Mapping) -> DataFrame: Notes ----- - We use `__iter__` (and not `__contains__`) to iterate over values + ``__iter__`` is used (and not ``__contains__``) to iterate over values when checking if it contains the elements in DataFrame. Examples