-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
consolidated the duplicate definitions of NA values (in parsers & IO) #16589
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
Changes from 1 commit
bc6752a
0650da0
b0c1d4d
1f0a350
0579460
6225c7c
a7e7f01
dc9a368
e8f6e82
5770506
5fa829e
c499448
03a335b
10cba2c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,9 +225,8 @@ NA and Missing Data Handling | |
|
||
na_values : scalar, str, list-like, or dict, default ``None`` | ||
Additional strings to recognize as NA/NaN. If dict passed, specific per-column | ||
NA values. By default the following values are interpreted as NaN: | ||
``'-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN', '#N/A N/A', '#N/A', 'N/A', 'n/a', 'NA', | ||
'#NA', 'NULL', 'null', 'NaN', '-NaN', 'nan', '-nan', ''``. | ||
NA values. By default the following values are interpreted as NaN: See :ref:`na values const | ||
<io.navaluesconst>` below. | ||
keep_default_na : boolean, default ``True`` | ||
If na_values are specified and keep_default_na is ``False`` the default NaN | ||
values are overridden, otherwise they're appended to. | ||
|
@@ -1030,8 +1029,11 @@ the corresponding equivalent values will also imply a missing value (in this cas | |
``[5.0,5]`` are recognized as ``NaN``. | ||
|
||
To completely override the default values that are recognized as missing, specify ``keep_default_na=False``. | ||
The default ``NaN`` recognized values are ``['-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN', '#N/A','N/A', 'NA', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you build the docs and show a rendering of this page. I think this might generate a build warning (and may not render correctly) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have build the docs locally before commit, there were warnings, some of them might be related to python 3, i have 2.7.13 on linux ; file doc/source/style.ipynb also was a problem, but the generated html looks ok, can not attach html file to this replay There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the only difference that i can see is a blank line because of the new label, but it might be not at bad thing at all, but i can remove the label and reuse the existing one that is for the heading NA Values, that will be several lines above |
||
'#NA', 'NULL', 'NaN', '-NaN', 'nan', '-nan']``. Although a 0-length string | ||
|
||
.. _io.navaluesconst: | ||
|
||
The default ``NaN`` recognized values are ``['-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN', '#N/A N/A', '#N/A', 'N/A', | ||
'n/a', 'NA', '#NA', 'NULL', 'null', 'NaN', '-NaN', 'nan', '-nan', '']``. Although a 0-length string | ||
``''`` is not included in the default ``NaN`` values list, it is still treated | ||
as a missing value. | ||
|
||
|
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.
The sentence "By default the following values are interpreted as NaN:" can be removed. I think