-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REGR: assert_series_equal defaulting to check_exact=True for Index #57341
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
Conversation
Thanks @phofl |
… check_exact=True for Index
…ing to check_exact=True for Index) (#57380) Backport PR #57341: REGR: assert_series_equal defaulting to check_exact=True for Index Co-authored-by: Patrick Hoefler <[email protected]>
@@ -902,6 +902,7 @@ def assert_series_equal( | |||
>>> tm.assert_series_equal(a, b) | |||
""" | |||
__tracebackhide__ = True | |||
check_exact_index = False if check_exact is lib.no_default else check_exact |
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.
Don't we want to default to check_exact=True for integers and false for floats?
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.
I wasn't a fan of doing the breaking change in a minor release, that's why I reverted back to 2.1.x behaviour for Index. We can introduce the more intelligent behavior for 3.0 if someone wants to do it
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.
Opened #57386 to track.
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.