-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Fix RT02 issues in docstrings #49968
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
Comments
I'll take the pandas.io.formats.style.Styler issues. |
Thanks @mliu08 for doing this! Whilst this is open, it would be good to also add a CI check which only checks the RT02 code, and excludes the files which still need doing. Then, as contributors fix a file, they remove the file from the CI check, until eventually this whole new CI check is removed and |
These are the remaining:
|
Can I work on these? pandas.CategoricalIndex.rename_categories |
go ahead, thanks! |
Can I work on: pandas.Series.dt.total_seconds ? These functions bellow don't seem to need work on pandas.Series.cat.rename_categories |
of course, thanks @DeaMariaLeon ! you've been really helpful here, you're welcome to work on as many as you like. and yes, if anything doesn't need work and can already be removed, then please do go ahead and remove it once these are all done, the final objective (after which we can close this issue) is when we can remove Line 86 in f47a8b8
and just include Lines 82 to 84 in f47a8b8
|
@MarcoGorelli apologies for the delayed response! I wasn't sure how to add a check that excluded the files that still needed doing, but I see it's been added since. |
Working on the rest of the functions:
|
Pandas version checks
main
hereLocation of the documentation
Several different pandas modules. See below for the list from ./scripts/validate_docstrings.py.
Documentation problem
The functions below have more than just the return type in the first line of the returns section. (RT02: The first line of the Returns section should contain only the type, unless multiple values are being returned)
Suggested fix for documentation
Per the recommendation in #27977, I've created this issue for the RT02 error code. To prevent duplicate work, comment below which functions you're going to take and reference this issue in your PR.
The text was updated successfully, but these errors were encountered: