-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Timestamp+int should raise NullFrequencyError, not ValueError #28268
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
What would a release note for this look like? IIUC, this is backwards compatible since catching a ValueError will still catch this NullFrequencyError? But we should still have a note describing the change so that users could tighten up the caught exception if they desire. |
This is a good question. I'm hesitant to advertise the change because before long we'll be enforcing the deprecation, at which point this should raise TypeError. |
I think OK to just say something like |
doc/source/whatsnew/v0.25.2.rst
Outdated
@@ -18,7 +18,7 @@ Categorical | |||
|
|||
Datetimelike | |||
^^^^^^^^^^^^ | |||
|
|||
- Addition and subtraction of integer or integer-dtype arrays with :class:`Timestamp` will now raise ``NullFrequencyError`` instead of ``ValueError`` (:issue:`28268`) |
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.
move to 1.0
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.
changed+green
lgtm. maybe rebase and push again (as the CI is hanging) |
rebased+green |
Looks like some merge conflicts - can you fix up and repush? |
rebased+green |
thanks @jbrockmendel |
Last prerequisite before we can fix #28080.