-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
API: Change DTA/TDA add/sub to match numpy #48748
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
@mroeschke nothing really time-sensitive here, but this is a blocker for constructor stuff |
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.
Could you also add a test where the ts + td could be downcast to a lower resolution but isn't?
e.g.
Timestamp(year=2022, month=1, day=1, microsecond=999999) + Timedelta(microseconds=1)
remains micro?
Added test_addition_doesnt_downcast_reso |
Thanks. Just merged #48743 which I release was supposed to be the Timestamp/Timedelta change. Could you add a similar dont downcast test for DTA/TDA? |
test added + green |
Thanks @jbrockmendel |
* API: Change Timestamp/Timedelta arithmetic to match numpy * fix interval test * DTA/TDA add/sub upcast instead of downcast * test for no-downcasting * add test
Sits on top of #48743