-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: TimedeltaIndex raising ValueError when boolean indexing (#14946) #15221
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
@@ -2052,6 +2052,22 @@ def test_add_overflow(self): | |||
to_timedelta(['7 seconds', pd.NaT, '4 hours'])) | |||
tm.assert_index_equal(result, exp) | |||
|
|||
def test_boolean_indexing(self): | |||
# GH 14946 |
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.
put this in pandas/tests/indexing
create a new class for TimedeltaIndex
might be some other timedelta indexing routines you can group with it
Current coverage is 86.31% (diff: 100%)@@ master #15221 diff @@
==========================================
Files 139 139
Lines 51091 51093 +2
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 44099 44101 +2
Misses 6992 6992
Partials 0 0
|
Moved the tests to |
thanks @mroeschke keep em coming! |
…dev#14946) closes pandas-dev#14946 Author: Matt Roeschke <[email protected]> Closes pandas-dev#15221 from mroeschke/fix_14946 and squashes the following commits: b8ac04e [Matt Roeschke] BUG: TimedelaIndex raising ValueError when boolean indexing (pandas-dev#14946)
git diff upstream/master | flake8 --diff
Implementing patch suggested by @jreback here that prevents raising a
ValueError
when boolean indexing with aTimedeltaIndex