-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
[ENH] Move intersection functions for DatetimeIndex and TimedeltaIndex to Datetimelike and added tests #25121
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
…atetimelike. Point PeriodIndex intersection to Index.intersection
Codecov Report
@@ Coverage Diff @@
## master #25121 +/- ##
==========================================
+ Coverage 92.37% 92.38% +<.01%
==========================================
Files 166 166
Lines 52415 52395 -20
==========================================
- Hits 48418 48404 -14
+ Misses 3997 3991 -6
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25121 +/- ##
==========================================
- Coverage 92.37% 92.16% -0.21%
==========================================
Files 166 166
Lines 52415 52279 -136
==========================================
- Hits 48418 48184 -234
- Misses 3997 4095 +98
Continue to review full report at Codecov.
|
@jreback and @jorisvandenbossche Thanks for the feedback, I think that all should be addressed, locally it looks find on my side. I hope the |
would love to have this. pls ping if you are interested in continuing. would need to rebase on master. |
@fdroessler let me know if you don't have time to finish this at the moment and I can pick it up. |
@fdroessler can you open a new PR ? (once you push to a branch after the PR has been closed, github does not let you reopen the PR ...) |
@jorisvandenbossche @jreback I submitted a new PR #25913 let me know if there are any missing issues you want me to resolve, happy to work on it. |
sort
option. #24966git diff upstream/master -u -- "*.py" | flake8 --diff
Because DatetimeIndex and TimedeltaIndex intersections are similar, I have moved the intersection function of both classes up into Datetimelike after discussions with @reidy-p @jorisvandenbossche. At the same time for PeriodIndex I have used Index.intersection instead. Additionally I have added some tests to TimedeltaIndex recycling some tests from DatetimeIndex.