From 11f27dff0f14104199f06d0e5966da218db48402 Mon Sep 17 00:00:00 2001 From: Varun Shrivastava Date: Thu, 30 Sep 2021 20:01:21 +0530 Subject: [PATCH 1/3] fixed Issued No.#43755 --- pandas/core/frame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): From 09d02aba04adc6595809d200924083f9d019368a Mon Sep 17 00:00:00 2001 From: Varun Shrivastava Date: Sun, 14 Nov 2021 19:38:50 +0530 Subject: [PATCH 2/3] Added . on to check_dtype and obj parameter --- pandas/_testing/asserters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 79c8e64fc4df3..63c696c663e66 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -540,7 +540,7 @@ def assert_categorical_equal( left : Categorical right : Categorical check_dtype : bool, default True - Check that integer dtype of the codes are the same + Check that integer dtype of the codes are the same. check_category_order : bool, default True Whether the order of the categories should be compared, which implies identical integer codes. If False, only the resulting @@ -548,7 +548,7 @@ def assert_categorical_equal( checked regardless. obj : str, default 'Categorical' Specify object name being compared, internally used to show appropriate - assertion message + assertion message. """ _check_isinstance(left, right, Categorical) From 0df68b6e2634b6a4e29c3fdffd97f1c4c22a9a5c Mon Sep 17 00:00:00 2001 From: Varun Shrivastava Date: Mon, 15 Nov 2021 19:03:05 +0530 Subject: [PATCH 3/3] Revert "fixed Issued No.#43755" This reverts commit 11f27dff0f14104199f06d0e5966da218db48402. --- pandas/core/frame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 4955513246626..bfdfeabbd389c 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 other. + in df2. - >>> other = pd.DataFrame({'num_legs': [8, 3], 'num_wings': [0, 2]}, + >>> other = pd.DataFrame({'num_legs': [8, 2], 'num_wings': [0, 2]}, ... index=['spider', 'falcon']) >>> df.isin(other) num_legs num_wings - falcon False True + falcon True True dog False False """ if isinstance(values, dict):