-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REGR: Fix comparison broadcasting over array of Intervals #35938
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
Changes from 3 commits
9d962dd
8c93c55
1b87f7e
5eaf357
5882821
83f2a59
4b4e4f7
10bcf39
49ae271
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 |
---|---|---|
|
@@ -45,3 +45,15 @@ def test_numeric_interval_add_timedelta_raises(interval, delta): | |
|
||
with pytest.raises((TypeError, ValueError), match=msg): | ||
delta + interval | ||
|
||
|
||
@pytest.mark.xfail(reason="https://github.com/pandas-dev/pandas/pull/35938") | ||
def test_timdelta_add_timestamp_interval(): | ||
delta = np.timedelta64(0) | ||
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. here or follow-up we should get the full complement of add/sub with dt64/td64/pytimedelta/Tick/... 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. Might as well parametrize over a few timedelta types here |
||
expected = Interval(Timestamp("2020-01-01"), Timestamp("2020-02-01")) | ||
|
||
result = delta + expected | ||
assert result == expected | ||
|
||
result = expected + delta | ||
assert result == expected |
Uh oh!
There was an error while loading. Please reload this page.