Skip to content

DOC: Enforce Numpy Docstring Validation for freqstr, nanos, and rule_code methods #59475

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

Merged

Conversation

Siniade
Copy link
Contributor

@Siniade Siniade commented Aug 10, 2024

Dosctring Validation for freqstr, nanos, and rule_code methods of pandas.tseries.offsets Week, WeekOfMonth, YearBegin, and YearEnd classes.

…code methods of pandas.tseries.offsets Week, WeekOfMonth, YearBegin, and YearEnd classes.
…code methods of pandas.tseries.offsets Week, WeekOfMonth, YearBegin, and YearEnd classes.
@Siniade Siniade force-pushed the 58536-enforce-docstring-validation-offsets branch from ee3b016 to 756fbd4 Compare August 11, 2024 02:51
@Siniade Siniade force-pushed the 58536-enforce-docstring-validation-offsets branch 2 times, most recently from 2b2d912 to 53c7096 Compare August 11, 2024 03:05
@Siniade Siniade force-pushed the 58536-enforce-docstring-validation-offsets branch from 02ab3af to 72b141f Compare August 11, 2024 04:27
@rhshadrach rhshadrach added Docs Timezones Timezone data dtype labels Aug 11, 2024

>>> pd.offsets.Week(5).rule_code
'W'
""" # noqa
Copy link
Member

Choose a reason for hiding this comment

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

Can you fix these docstrings so we don't need a noqa? i.e. Put the Returns as string... indented on a new line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review! I have made these changes and also updated the other commits. I am getting a test error which I wasn't getting previously and I'm not sure why.

@Siniade Siniade force-pushed the 58536-enforce-docstring-validation-offsets branch from 4411a37 to edb3670 Compare August 13, 2024 23:40
@Siniade Siniade force-pushed the 58536-enforce-docstring-validation-offsets branch from a2d9784 to dedcd83 Compare August 14, 2024 02:16
@Siniade Siniade force-pushed the 58536-enforce-docstring-validation-offsets branch from 9454f41 to ec59485 Compare August 14, 2024 03:06
@Siniade Siniade force-pushed the 58536-enforce-docstring-validation-offsets branch from 383550e to e1c2879 Compare August 14, 2024 04:07
@Siniade Siniade force-pushed the 58536-enforce-docstring-validation-offsets branch from 72d60db to 7186719 Compare August 14, 2024 22:17
Delete two examples from See Also for nanos

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Siniade and others added 2 commits August 14, 2024 18:19
Update nanos summary

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Delete two examples from See Also for nanos

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
@Siniade Siniade requested a review from mroeschke August 14, 2024 23:42
@mroeschke mroeschke added this to the 3.0 milestone Aug 15, 2024
@mroeschke mroeschke merged commit 4409d42 into pandas-dev:main Aug 15, 2024
47 checks passed
@mroeschke
Copy link
Member

Thanks @Siniade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Enforce Numpy Docstring Validation | pandas.tseries.offsets.Week to YearEnd
3 participants