-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: update the pandas.Index.notna docstring #20180
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: update the pandas.Index.notna docstring #20180
Conversation
pandas/core/indexes/base.py
Outdated
Detect existing (non-missing) values. | ||
|
||
Return a boolean same-sized object indicating if the values are not NA. | ||
Non-missing values get mapped to True. Characters such as empty |
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.
``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.
Thx for the trick with the double quotes. I'm using it now.
pandas/core/indexes/base.py
Outdated
|
||
Return a boolean same-sized object indicating if the values are not NA. | ||
Non-missing values get mapped to True. Characters such as empty | ||
strings `''` or :attr:`numpy.inf` are not considered NA values |
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/core/indexes/base.py
Outdated
Non-missing values get mapped to True. Characters such as empty | ||
strings `''` or :attr:`numpy.inf` are not considered NA values | ||
(unless you set :attr:`pandas.options.mode.use_inf_as_na` `= True`). | ||
NA values, such as None or :attr:`numpy.NaN`, get mapped to False |
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.
``False``
Codecov Report
@@ Coverage Diff @@
## master #20180 +/- ##
=========================================
Coverage ? 91.7%
=========================================
Files ? 150
Lines ? 49152
Branches ? 0
=========================================
Hits ? 45074
Misses ? 4078
Partials ? 0
Continue to review full report at Codecov.
|
@Donk23 made a minor edit, thanks a lot! |
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>