Skip to content

Commit 834f195

Browse files
DeanLadberenbaum
authored andcommitted
DOC: Clarify check_like behavior in assert_frame_equal (pandas-dev#22106)
1 parent f1ee818 commit 834f195

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/util/testing.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,9 @@ def assert_frame_equal(left, right, check_dtype=True,
13481348
check_categorical : bool, default True
13491349
Whether to compare internal Categorical exactly.
13501350
check_like : bool, default False
1351-
If true, ignore the order of rows & columns
1351+
If True, ignore the order of index & columns.
1352+
Note: index labels must match their respective rows
1353+
(same as in columns) - same labels must be with the same data
13521354
obj : str, default 'DataFrame'
13531355
Specify object name being compared, internally used to show appropriate
13541356
assertion message

0 commit comments

Comments
 (0)