-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
DOC: Enforce Numpy Docstring Validation for freqstr, nanos, and rule_code methods #59475
Conversation
…code methods of pandas.tseries.offsets Week, WeekOfMonth, YearBegin, and YearEnd classes.
…code methods of pandas.tseries.offsets Week, WeekOfMonth, YearBegin, and YearEnd classes.
ee3b016
to
756fbd4
Compare
2b2d912
to
53c7096
Compare
02ab3af
to
72b141f
Compare
pandas/_libs/tslibs/offsets.pyx
Outdated
|
||
>>> pd.offsets.Week(5).rule_code | ||
'W' | ||
""" # noqa |
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.
Can you fix these docstrings so we don't need a noqa? i.e. Put the Returns as string...
indented on a new line?
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 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.
4411a37
to
edb3670
Compare
a2d9784
to
dedcd83
Compare
9454f41
to
ec59485
Compare
383550e
to
e1c2879
Compare
72d60db
to
7186719
Compare
Delete two examples from See Also for nanos Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
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>
Thanks @Siniade |
Dosctring Validation for freqstr, nanos, and rule_code methods of pandas.tseries.offsets Week, WeekOfMonth, YearBegin, and YearEnd classes.