-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Docstring pandas index all any #20168
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
DOC: Docstring pandas index all any #20168
Conversation
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.
Can you past the final docstring once the subs have been made? I'm trying to udnerstand outnames
pandas/core/indexes/base.py
Outdated
|
||
Examples | ||
-------- | ||
>>> index = pd.Index([1,2,3]) |
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.
PEP8: space after commas
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.
################################################################################
######################### Docstring (pandas.Index.all) #########################
################################################################################
Return whether all elements are True.
Parameters
*args
These parameters will be passed to numpy.all.
**kwargs
These parameters will be passed to numpy.all.
Returns
all : bool or array_like (if axis is specified)
A single element array_like may be converted to bool.
See Also
--------
pandas.Index.any : Return whether any element is True.
Notes
-----
Not a Number (NaN), positive infinity and negative infinity
evaluate to True because these are not equal to zero.
Examples
--------
>>> index = pd.Index([1, 2, 3])
>>> index.all()
True
>>> index = pd.Index([0, 1, 2])
>>> index.all()
False
################################################################################
################################## Validation ##################################
################################################################################
Errors found:
No extended summary found
Errors in parameters section
Parameters {'kwargs', 'args'} not documented
Unknown parameters {'**kwargs', '*args'}
Parameter "*args" has no type
Parameter "**kwargs" has no type
pandas/core/indexes/base.py
Outdated
See Also | ||
-------- | ||
pandas.Index.any : Return whether any element is True. | ||
|
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.
pandas.Series.any as well
|
||
See Also | ||
-------- | ||
pandas.Index.all : Return whether all elements are True. |
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.
pandas.Series.all
Codecov Report
@@ Coverage Diff @@
## master #20168 +/- ##
=========================================
Coverage ? 91.72%
=========================================
Files ? 150
Lines ? 49155
Branches ? 0
=========================================
Hits ? 45089
Misses ? 4066
Partials ? 0
Continue to review full report at Codecov.
|
Thanks @alinde1! |
Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
scripts/validate_docstrings.py <your-function-or-method>
git diff upstream/master -u -- "*.py" | flake8 --diff
python doc/make.py --single <your-function-or-method>
Please include the output of the validation script below between the "```" ticks:
If the validation script still gives errors, but you think there is a good reason
to deviate in this case (and there are certainly such cases), please state this
explicitly.