-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Revert "REF: remove special casing from Index.equals (always dispatchto subclass) (#35330)" #38560
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
… to subclass) (pandas-dev#35330)" This reverts commit 0b90685.
more benchmark results
|
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.
lgtm @jbrockmendel if any comments
and type(other) is not type(self) | ||
and other.equals is not self.equals | ||
): | ||
if is_object_dtype(self.dtype) and not is_object_dtype(other.dtype): |
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.
let's make this an elif & put a big note that these are perf sensitive checks (followon)
and type(other) is not type(self) | ||
and other.equals is not self.equals | ||
): | ||
if is_object_dtype(self.dtype) and not is_object_dtype(other.dtype): |
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.
note that this also hits the MultiIndex path
LGTM |
@jreback OK to merge this as a straight revert for backport and then follow-up for master |
@meeseeksdev backport 1.2.x |
… Index.equals (always dispatchto subclass) (pandas-dev#35330)"
…als (always dispatchto subclass) (#35330)" (#38565) Co-authored-by: Simon Hawkins <[email protected]>
… to subclass) (pandas-dev#35330)" (pandas-dev#38560) This reverts commit 0b90685.
This reverts commit 0b90685.
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff