-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: name retention in Index.intersection #38111
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
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.
likley will conflict with #36927 looks ok at a glance
pls add a whatsnew as well |
whatsnew added + greenish (the same test_area_lim) |
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.
pls merge master
pandas/core/indexes/datetimelike.py
Outdated
|
||
if self.equals(other): | ||
return self._get_reconciled_name_object(other) | ||
|
||
return self._intersection(other, sort=sort) | ||
|
||
def _intersection(self, other, sort=False): |
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.
type if you can (doc-string if needed)
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
its going to take a few passes to get the behavior consistent across all subclasses. once done, we can de-duplicate the boilerplate.