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

API: Remove CalendarDay #24330

Merged
merged 9 commits into from
Dec 18, 2018
Merged

Conversation

mroeschke
Copy link
Member

  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

Given that we want to ship 0.24.0 soon and that converting 'D' and Day to always act as calendar day warrants more game-planning, this PR just simply removes CalendarDay and reverts 'D' and Day to their prior behavior.

@pep8speaks
Copy link

Hello @mroeschke! Thanks for submitting the PR.

@@ -1627,18 +1629,21 @@ def _get_timestamp_range_edges(first, last, offset, closed='left', base=0):
-------
A tuple of length 2, containing the adjusted pd.Timestamp objects.
"""
if not all(isinstance(obj, pd.Timestamp) for obj in [first, last]):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed AFAICT. All internal calls to this method have Timestamp inputs.

@mroeschke mroeschke added this to the 0.24.0 milestone Dec 18, 2018
@codecov
Copy link

codecov bot commented Dec 18, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24330      +/-   ##
==========================================
+ Coverage   92.28%   92.28%   +<.01%     
==========================================
  Files         162      162              
  Lines       51831    51813      -18     
==========================================
- Hits        47830    47816      -14     
+ Misses       4001     3997       -4
Flag Coverage Δ
#multiple 90.68% <100%> (ø) ⬆️
#single 42.98% <61.53%> (-0.02%) ⬇️
Impacted Files Coverage Δ
pandas/tseries/offsets.py 96.95% <ø> (+0.11%) ⬆️
pandas/core/resample.py 96.76% <100%> (+0.18%) ⬆️
pandas/core/arrays/datetimes.py 98.24% <100%> (ø) ⬆️
pandas/util/testing.py 87.58% <0%> (+0.09%) ⬆️

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 216986d...18dabb8. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 18, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24330      +/-   ##
==========================================
+ Coverage   92.28%   92.28%   +<.01%     
==========================================
  Files         162      162              
  Lines       51831    51817      -14     
==========================================
- Hits        47830    47819      -11     
+ Misses       4001     3998       -3
Flag Coverage Δ
#multiple 90.69% <100%> (ø) ⬆️
#single 42.99% <61.53%> (-0.02%) ⬇️
Impacted Files Coverage Δ
pandas/tseries/offsets.py 96.95% <ø> (+0.11%) ⬆️
pandas/core/resample.py 96.76% <100%> (+0.18%) ⬆️
pandas/core/arrays/datetimes.py 98.24% <100%> (ø) ⬆️
pandas/core/indexes/period.py 93.09% <0%> (+0.03%) ⬆️
pandas/core/reshape/tile.py 94.82% <0%> (+0.06%) ⬆️

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 216986d...e0d5bfe. Read the comment docs.

@jreback jreback merged commit 223c060 into pandas-dev:master Dec 18, 2018
@jreback
Copy link
Contributor

jreback commented Dec 18, 2018

thanks @mroeschke

@mroeschke mroeschke deleted the remove_calendarday branch December 18, 2018 23:55
@TomAugspurger TomAugspurger mentioned this pull request Dec 19, 2018
12 tasks
TomAugspurger pushed a commit to TomAugspurger/pandas that referenced this pull request Dec 20, 2018
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants