-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
DEPR: Undeprecate period - integer addition #24352
DEPR: Undeprecate period - integer addition #24352
Conversation
Hello @TomAugspurger! Thanks for submitting the PR.
|
@@ -919,7 +920,8 @@ def __add__(self, other): | |||
# DatetimeIndex, ndarray[datetime64] | |||
return self._add_datetime_arraylike(other) | |||
elif is_integer_dtype(other): | |||
maybe_integer_op_deprecated(self) | |||
if not is_period_dtype(self): |
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.
These repeated if checks could maybe be moved into the maybe_integer_op_deprecated
. @jbrockmendel is there a recommended Cython equivalent for is_period_dtype
?
Codecov Report
@@ Coverage Diff @@
## master #24352 +/- ##
===========================================
- Coverage 92.29% 42.99% -49.31%
===========================================
Files 162 162
Lines 51808 51812 +4
===========================================
- Hits 47817 22277 -25540
- Misses 3991 29535 +25544
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24352 +/- ##
==========================================
+ Coverage 92.29% 92.29% +<.01%
==========================================
Files 162 162
Lines 51808 51812 +4
==========================================
+ Hits 47817 47821 +4
Misses 3991 3991
Continue to review full report at Codecov.
|
thanks @TomAugspurger |
Closes #24305