-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Clarify check_like behavior in assert_frame_equal #22106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Clarify check_like behavior in assert_frame_equal #22106
Conversation
DeanLa
commented
Jul 28, 2018
•
edited by WillAyd
Loading
edited by WillAyd
- closes pd.testing.assert_frame_equal check_like not working like expected #22052
pandas/util/testing.py
Outdated
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you capitalize True?
Changed capitalization true -> True
Codecov Report
@@ Coverage Diff @@
## master #22106 +/- ##
==========================================
+ Coverage 92.06% 92.07% +0.01%
==========================================
Files 170 170
Lines 50705 50688 -17
==========================================
- Hits 46680 46671 -9
+ Misses 4025 4017 -8
Continue to review full report at Codecov.
|
pandas/util/testing.py
Outdated
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change rows -> index (then don't need the work Index on next line), just use index
rows -> index
Changed as requested |
pandas/util/testing.py
Outdated
@@ -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 index & columns. | |||
Note: row labels must match their respective rows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use index
instead of row
row -> index
lgtm. @WillAyd merge when satisfied. |
Thanks @DeanLa ! |