Skip to content
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

Merged
merged 2 commits into from
Dec 23, 2018

Conversation

TomAugspurger
Copy link
Contributor

Closes #24305

@TomAugspurger TomAugspurger added the Deprecate Functionality to remove in pandas label Dec 19, 2018
@TomAugspurger TomAugspurger added this to the 0.24.0 milestone Dec 19, 2018
@pep8speaks
Copy link

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):
Copy link
Contributor Author

@TomAugspurger TomAugspurger Dec 19, 2018

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
Copy link

codecov bot commented Dec 19, 2018

Codecov Report

Merging #24352 into master will decrease coverage by 49.3%.
The diff coverage is 0%.

Impacted file tree graph

@@             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
Flag Coverage Δ
#multiple ?
#single 42.99% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/arrays/datetimelike.py 48.89% <0%> (-47.55%) ⬇️
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/core/categorical.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/formats/html.py 0% <0%> (-98.65%) ⬇️
pandas/core/groupby/categorical.py 0% <0%> (-95.46%) ⬇️
pandas/io/sas/sas7bdat.py 0% <0%> (-91.17%) ⬇️
pandas/io/sas/sas_xport.py 0% <0%> (-90.15%) ⬇️
... and 121 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14c33b0...d2351bf. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 19, 2018

Codecov Report

Merging #24352 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24352      +/-   ##
==========================================
+ Coverage   92.29%   92.29%   +<.01%     
==========================================
  Files         162      162              
  Lines       51808    51812       +4     
==========================================
+ Hits        47817    47821       +4     
  Misses       3991     3991
Flag Coverage Δ
#multiple 90.7% <100%> (ø) ⬆️
#single 42.99% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/arrays/datetimelike.py 96.47% <100%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14c33b0...d2351bf. Read the comment docs.

@jreback jreback merged commit ffa4c77 into pandas-dev:master Dec 23, 2018
@jreback
Copy link
Contributor

jreback commented Dec 23, 2018

thanks @TomAugspurger

@TomAugspurger TomAugspurger deleted the undepr-period-addsub-int branch January 2, 2019 20:17
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants