-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Corrected code_checks.sh #53266
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
ci/code_checks.sh
Outdated
@@ -83,6 +83,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then | |||
pandas.Series.backfill \ | |||
pandas.Series.ffill \ | |||
pandas.Series.pad \ | |||
pandas.Series.dt.end_time \ |
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 updating - looks like the check passes even with this in, are we sure we need it?
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'll check
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.
looks like Series.dt.end_time
inherits the docstrings from Period.end_time
rather than doing complicated 4D code gymnastics to share docstrings, shall we just put the examples together? a bit like you did for some other examples, like
For period:
>>> [current example]
For Series:
>>> [example for Series.dt.end_time]
Then we can remove both from code_checks
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 - I saw this after I arrived to the same conclusion (but slower 🫤)
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 @DeaMariaLeon !
* Corrected code_checks.sh * Added example for Series.dt.end_time * Update pandas/_libs/tslibs/period.pyx --------- Co-authored-by: Marco Edward Gorelli <[email protected]>
* Corrected code_checks.sh * Added example for Series.dt.end_time * Update pandas/_libs/tslibs/period.pyx --------- Co-authored-by: Marco Edward Gorelli <[email protected]>
Towards #37875