-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF/REGR: IntervalIndex.intersection, PeriodIndex.get_loc #42293
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
looks good can u run the asvs on these to see the change |
backporting in any event |
# -------------------------------------------------------------------- | ||
# Set Operations | ||
|
||
def _intersection(self, other, sort): |
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.
you could probably do this more generally (e.g. push it down into Index itself). but of course for later.
elif isinstance(key, Period): | ||
pass | ||
sfreq = self.freq |
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.
could codify in a method (the comparison) but nbd (for later)
This comment has been minimized.
This comment has been minimized.
@meeseeksdev backport 1.3.x |
@jbrockmendel needs a manual backport |
This comment has been minimized.
This comment has been minimized.
…PeriodIndex.get_loc
Should fix #42240, #42247, not checking the box because I jumped the gun last time.