-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
implement non-controversial cleanup portions of #18762 #18959
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
Codecov Report
@@ Coverage Diff @@
## master #18959 +/- ##
==========================================
+ Coverage 91.57% 91.59% +0.02%
==========================================
Files 150 150
Lines 48964 48920 -44
==========================================
- Hits 44838 44809 -29
+ Misses 4126 4111 -15
Continue to review full report at Codecov.
|
day_opt : 'start', 'end' | ||
'start': returns 1 | ||
'end': returns last day of the month | ||
month : reference month giving the first month of the year |
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.
I would make this a required parameter and pass it. its more obvious.
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.
Sounds good. Just pushed.
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.
may day_opt in shift_month required as well. optional args to these routines are quite error prone.
looks fine. do we need additional test coverage of shift_months, roll_yearday to account for not having None's? (I think yes, if nothing broke with this change) |
I'm fine with adding that to the todo list, but don't want this PR to descend into yak shaving. |
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 yak shaving. believe me you would know that! rather putting fixes in a single PR is better for review.
""" | ||
Given an int64-based datetime index, shift all elements | ||
specified number of months using DateOffset semantics | ||
|
||
day: {None, 'start', 'end'} | ||
day: {None, 'start', 'end', 'business_start', 'business_end'} |
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.
remove the None as a valid argument or is it? also need to fix the code
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.
None is valid.
superseded by #18762 |
#18762 touches a lot of code and is currently in limbo pending discussion of
roll_monthday
androll_convention
. This separates out unrelated cleanup portions of that PR, the idea being that making the diff there simpler will make things easier.git diff upstream/master -u -- "*.py" | flake8 --diff