Skip to content

Commit 10cba2c

Browse files
committed
improved text related to na values in io.rst file
1 parent 03a335b commit 10cba2c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/source/io.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ NA and Missing Data Handling
225225

226226
na_values : scalar, str, list-like, or dict, default ``None``
227227
Additional strings to recognize as NA/NaN. If dict passed, specific per-column
228-
NA values. By default the following values are interpreted as NaN: See :ref:`na values const
229-
<io.navaluesconst>` below.
228+
NA values. See :ref:`na values const <io.navaluesconst>` below
229+
for a list of the values interpreted as NaN by default.
230+
230231
keep_default_na : boolean, default ``True``
231232
If na_values are specified and keep_default_na is ``False`` the default NaN
232233
values are overridden, otherwise they're appended to.
@@ -1033,9 +1034,7 @@ To completely override the default values that are recognized as missing, specif
10331034
.. _io.navaluesconst:
10341035

10351036
The default ``NaN`` recognized values are ``['-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN', '#N/A N/A', '#N/A', 'N/A',
1036-
'n/a', 'NA', '#NA', 'NULL', 'null', 'NaN', '-NaN', 'nan', '-nan', '']``. Although a 0-length string
1037-
``''`` is not included in the default ``NaN`` values list, it is still treated
1038-
as a missing value.
1037+
'n/a', 'NA', '#NA', 'NULL', 'null', 'NaN', '-NaN', 'nan', '-nan', '']``.
10391038

10401039
.. code-block:: python
10411040

0 commit comments

Comments
 (0)