-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: MultiIndex.equals #43589
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
PERF: MultiIndex.equals #43589
Conversation
jbrockmendel
commented
Sep 15, 2021
- closes PERF: MultiIndex equals method got 20x slower #43549
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
@@ -3544,8 +3544,13 @@ def equals(self, other: object) -> bool: | |||
if len(self_values) == 0 and len(other_values) == 0: | |||
continue | |||
|
|||
if not array_equivalent(self_values, other_values): | |||
return False | |||
if not isinstance(self_values, np.ndarray): |
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.
maybe should do this check in array_equivalent
?
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.
at some point probably; need to check if other usages will be affected by the semantics of EA.equals
prob worth backporting this, can you add a whatsnew note @jbrockmendel ping on green |
@meeseeksdev backport 1.3.x |
Something went wrong ... Please have a look at my logs. |
Co-authored-by: jbrockmendel <[email protected]>