-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: make return type documentation of series methods consistent #35409 #36862
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
Fix docstrings associated with Series methods for now. Once it passes review, I'll start working on other docstring fixes in the same way. |
pandas/core/arrays/categorical.py
Outdated
@@ -917,7 +916,8 @@ def reorder_categories(self, new_categories, ordered=None, inplace=False): | |||
|
|||
Returns | |||
------- | |||
cat : Categorical with reordered categories or None if inplace. | |||
cat : Categprocal or None |
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.
Typo here. Otherwise, lgtm
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.
Thank you. Done.
I start working on other docstring fixes in the same way.
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.
Note that CI Checks complains about missing dots at the end of return statement.
6818:RT05:pandas.DataFrame.interpolate:Return value description should finish with "."
There are several of such errors.
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'm sorry for all the mistakes. Thank you for pointing that out. Done.
would love to get a hacktoberfest tag if possible. #36837 |
cc @simonjayhawkins ok with the text? |
Thanks @junjunjunk! Very nice. |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff