From 671d96fbc0fc25ca55eb37d0c6d2cfa753de115a Mon Sep 17 00:00:00 2001 From: DeanLa Date: Sat, 28 Jul 2018 23:09:32 +0300 Subject: [PATCH 1/4] DOC: Clarify check_like behavior in assert_frame_equal GH22052 --- pandas/util/testing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 9697c991122dd..ef15c3df9ce70 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1348,7 +1348,9 @@ def assert_frame_equal(left, right, check_dtype=True, check_categorical : bool, default True Whether to compare internal Categorical exactly. check_like : bool, default False - If true, ignore the order of rows & columns + If true, ignore the order of rows & columns. + Note: Index (row) labels must match their respective rows + (same as in columns) - same labels must be with the same data obj : str, default 'DataFrame' Specify object name being compared, internally used to show appropriate assertion message From 84a68d1b5ae38f0d2067346e1b46023a522d70b9 Mon Sep 17 00:00:00 2001 From: DeanLa Date: Sun, 29 Jul 2018 09:15:19 +0300 Subject: [PATCH 2/4] DOC: Clarify check_like behavior in assert_frame_equal GH22052 Changed capitalization true -> True --- pandas/util/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/util/testing.py b/pandas/util/testing.py index ef15c3df9ce70..5acacbf50b807 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1348,7 +1348,7 @@ def assert_frame_equal(left, right, check_dtype=True, check_categorical : bool, default True Whether to compare internal Categorical exactly. check_like : bool, default False - If true, ignore the order of rows & columns. + If True, ignore the order of rows & columns. Note: Index (row) labels must match their respective rows (same as in columns) - same labels must be with the same data obj : str, default 'DataFrame' From c6a656079a9e342b00fc8e7fe735473a41602de1 Mon Sep 17 00:00:00 2001 From: Dean Langsam Date: Sun, 29 Jul 2018 20:00:00 +0300 Subject: [PATCH 3/4] DOC: assert_frame_equal index_like wording rows -> index --- pandas/util/testing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 5acacbf50b807..85f831c3cef14 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1348,8 +1348,8 @@ def assert_frame_equal(left, right, check_dtype=True, check_categorical : bool, default True Whether to compare internal Categorical exactly. check_like : bool, default False - If True, ignore the order of rows & columns. - Note: Index (row) labels must match their respective rows + If True, ignore the order of index & columns. + Note: row labels must match their respective rows (same as in columns) - same labels must be with the same data obj : str, default 'DataFrame' Specify object name being compared, internally used to show appropriate From a3abbd72af1975d4d40c7c5548fce0234e439320 Mon Sep 17 00:00:00 2001 From: Dean Langsam Date: Tue, 31 Jul 2018 11:00:37 +0300 Subject: [PATCH 4/4] DOC: assert frames equal wording row -> index --- pandas/util/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 85f831c3cef14..8deb056d2bd15 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1349,7 +1349,7 @@ def assert_frame_equal(left, right, check_dtype=True, Whether to compare internal Categorical exactly. check_like : bool, default False If True, ignore the order of index & columns. - Note: row labels must match their respective rows + Note: index labels must match their respective rows (same as in columns) - same labels must be with the same data obj : str, default 'DataFrame' Specify object name being compared, internally used to show appropriate