8000 consolidated the duplicate definitions of NA values (in parsers & IO) by OlegShteynbuk · Pull Request #16589 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 14 commits into from
Jun 13, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
improved text related to na values in io.rst file
  • Loading branch information
OlegShteynbuk committed Jun 13, 2017
commit 10cba2cf73fd6212ea5ad9cb10c01e8db3eceed2
9 changes: 4 additions & 5 deletions doc/source/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ 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: See :ref:`na values const
<io.navaluesconst>` below.
NA values. See :ref:`na values const <io.navaluesconst>` below
for a list of the values interpreted as NaN by default.

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.
Expand Down Expand Up @@ -1033,9 +1034,7 @@ To completely override the default values that are recognized as missing, specif
.. _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.
'n/a', 'NA', '#NA', 'NULL', 'null', 'NaN', '-NaN', 'nan', '-nan', '']``.

.. code-block:: python

Expand Down
0