-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
API: Remove CalendarDay #24330
Conversation
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]): |
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.
This is not needed AFAICT. All internal calls to this method have Timestamp inputs.
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
thanks @mroeschke |
git diff upstream/master -u -- "*.py" | flake8 --diff
Given that we want to ship 0.24.0 soon and that converting
'D'
andDay
to always act as calendar day warrants more game-planning, this PR just simply removesCalendarDay
and reverts'D'
andDay
to their prior behavior.