-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: TimedeltaIndex raising ValueError when slice indexing (#16637) #16638
Changes from all commits
6d23625
6309877
094d25a
4a0b379
d842230
00675c0
12ecdc4
dc8cb7a
358bfca
186549a
7df27da
b38d6ba
b5f43a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,10 +200,12 @@ def test_is_datetime64tz_dtype(): | |
def test_is_timedelta64_dtype(): | ||
assert not com.is_timedelta64_dtype(object) | ||
assert not com.is_timedelta64_dtype([1, 2, 3]) | ||
|
||
assert not com.is_timedelta64_dtype(np.array([], dtype=np.datetime64)) | ||
assert com.is_timedelta64_dtype(np.timedelta64) | ||
assert com.is_timedelta64_dtype(pd.Series([], dtype="timedelta64[ns]")) | ||
|
||
assert not com.is_timedelta64_dtype("0 days 00:00:00") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. didn't you have 2 cases that trigger the exception? if so pls add the other one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not that I am aware of. There is a separate issue I think were isnull would trigger an exception in the get_loc function. I don't see how that condition could be hit in the future. |
||
|
||
|
||
def test_is_period_dtype(): | ||
assert not com.is_period_dtype(object) | ||
|
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.
this is fine
but need tests that hit this