-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: update documentation for CustomBusinessHour #50182
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
DOC: update documentation for CustomBusinessHour #50182
Conversation
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.
thanks for working on this, it's already much clearer
pandas/_libs/tslibs/offsets.pyx
Outdated
offset : timedelta, default timedelta(0) | ||
Time offset to apply. |
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.
have you noticed whether this parameter has any effect, or is it unused?
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 haven’t checked it yet, but I’ll do it. If the parameter has any effect, I’ll add an example.
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.
My checks show that the parameter offset
hasn't any effect on how the CustomBusinessHour
works. That is why I don’t mark it as a parameter of CustomBusinessHour
.
Co-authored-by: Marco Edward Gorelli <[email protected]>
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.
Nice! Just one more comment
CI failures are unrelated (and fixed as of #50205), if you fetch and merge upstream/main then it should be fine
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.
Thank you, MarcoGorelli, for reviewing my PR. I'll keep your comments in mind. |
😄 I didn't choose it, it's taken randomly from https://chriskuehl.github.io/shipit/ (though perhaps I should curate my own list) |
Updated documentation for
CustomBusinessHour
. Added missing parameters:holidays
,calendar
, andoffset
. Provided more examples.