Skip to content

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

Merged
merged 3 commits into from
May 17, 2023
Merged

Conversation

DeaMariaLeon
Copy link
Member

Towards #37875

@@ -83,6 +83,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.backfill \
pandas.Series.ffill \
pandas.Series.pad \
pandas.Series.dt.end_time \
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll check

Copy link
Member

@MarcoGorelli MarcoGorelli May 17, 2023

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

image

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

Copy link
Member Author

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 🫤)

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 @DeaMariaLeon !

@MarcoGorelli MarcoGorelli added this to the 2.1 milestone May 17, 2023
@MarcoGorelli MarcoGorelli merged commit e2c4505 into pandas-dev:main May 17, 2023
@DeaMariaLeon DeaMariaLeon deleted the codechecks branch May 17, 2023 14:15
topper-123 pushed a commit to topper-123/pandas that referenced this pull request May 22, 2023
* 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]>
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* 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]>
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