-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Fix docstrings for pandas.Period.month #59517
Fix docstrings for pandas.Period.month #59517
Conversation
pandas/_libs/tslibs/period.pyx
Outdated
""" | ||
Return the month this Period falls on. | ||
""" |
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.
in indent was correct before
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 the feedback. I've updated the indentation of the function in pandas/_libs/tslibs/period.pyx
.
If you have any further suggestions or if there's anything specific you’d like me to address, please let me know!
pandas/_libs/tslibs/period.pyx
Outdated
Handle a case where the Period object is invalid or empty, which results in `NaN`: | ||
|
||
>>> period = pd.Period('nan', 'M') | ||
>>> period.month | ||
nan | ||
|
||
Handle a case where the Period object is invalid or empty, which results in `NaN`: | ||
|
||
>>> period = pd.Period('nan', 'M') | ||
>>> period.month | ||
nan |
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.
repeated?
thnx, please check ci failure |
Thanks @uditbaliyan |
Part of #59458
Addresses:
pandas.Period.month having SA01
pandas.Period.asfreq SA01
Changes:
Added See Also section .
Added Returns section .
Added extended section .
Added notes section .
Added examples section .
Removed "pandas.Period.month SA01" and "pandas.Period.asfreq SA01" from code_checks.sh