-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
[ENH] Move intersection functions for DatetimeIndex and TimedeltaIndex to Datetimelike and added new tests #25913
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
[ENH] Move intersection functions for DatetimeIndex and TimedeltaIndex to Datetimelike and added new tests #25913
Conversation
…atetimelike. Point PeriodIndex intersection to Index.intersection
Codecov Report
@@ Coverage Diff @@
## master #25913 +/- ##
==========================================
+ Coverage 91.56% 91.56% +<.01%
==========================================
Files 175 175
Lines 52775 52760 -15
==========================================
- Hits 48324 48312 -12
+ Misses 4451 4448 -3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25913 +/- ##
==========================================
+ Coverage 91.97% 91.97% +<.01%
==========================================
Files 175 175
Lines 52368 52349 -19
==========================================
- Hits 48164 48148 -16
+ Misses 4204 4201 -3
Continue to review full report at Codecov.
|
@gfyoung not sure if I should mark the comments as resolved or if you do it once you had a look at it. Please let me know what the general practice is on those so I know for the future. |
@jreback Is there anything else? Do you want me to create a new issue re restructuring the tests? |
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.
small comments, yes pls file an issue to consolidate set_op tests across indexes
@TomAugspurger if you could have a look |
Probably won’t be able to for a while. Don’t hold this up because of me.
… On Apr 12, 2019, at 06:39, Jeff Reback ***@***.***> wrote:
@TomAugspurger if you could have a look
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@fdroessler can you merge master and will have a look. |
@jreback sure, done |
can you merge master |
Done @jreback |
thanks @fdroessler very nice! |
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.
Re-open from #25121