Skip to content

DOC: add parameters and examples to CustomBusinessMonthBegin/End #55328

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

natmokval
Copy link
Contributor

In the documentation of offsets classes: CustomBusinessMonthEnd and CustomBusinessMonthBegin there are no parameters, see also and examples sections. I added parameters and examples.

@natmokval natmokval changed the title add parameters and examples to CustomBusinessMonthBegin/End DOC: add parameters and examples to CustomBusinessMonthBegin/End Sep 29, 2023
@natmokval natmokval marked this pull request as ready for review September 29, 2023 21:31
@natmokval natmokval added the Docs label Sep 29, 2023
Copy link
Member

@MarcoGorelli MarcoGorelli left a 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! just got a minor comment

Comment on lines 4461 to 4463
_attributes = tuple(
["n", "normalize", "weekmask", "holidays", "calendar", "offset"]
)
Copy link
Member

Choose a reason for hiding this comment

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

ok with moving the docstring, but I think _attributes could have stayed in the parent class? could we move that back please to remove duplication?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for reviewing this PR. I moved _attributes to _CustomBusinessMonth

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

looks good to me on green, thanks @natmokval

@MarcoGorelli MarcoGorelli added this to the 2.2 milestone Oct 2, 2023
@MarcoGorelli MarcoGorelli merged commit 0db27c0 into pandas-dev:main Oct 2, 2023
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.

2 participants