-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: remove need for assert_matching in pandas/tests/indexes/test_multi.py #19105
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
Comments
cc @Mofef |
pandas/pandas/core/dtypes/missing.py Lines 258 to 264 in bbfbe48
which assumes that the dtypes of each array is the same whereas some of the assert_matching calls in test_multi.py specify the checking of dtypes. Should I add an argument for checking dtypes in Index.equals ?
|
oh sorry, I meant to say |
Ok so all of the pandas/pandas/tests/indexes/test_multi.py Lines 180 to 198 in f6c0f8a
In the first test, a slightly modified levels new_levels is being set on a new index ind2 and then assert_matching is checking if ind2 's levels have been set correctly without mutating the original. So does using tm.assert_index_equal make sense in this case since it would require manually creating a new index to compare levels when all we want to compare are the levels themselves?
|
I prefer to use the stock routines rather than write a custom routine. |
xref #19058
I believe this can be subsumed with simple
result.equals(expected)
index comparisions.no need to have a non-standard comparison method.
The text was updated successfully, but these errors were encountered: