Skip to content

Commit db67d62

Browse files
committed
improved text related to na values in io.rst file
1 parent 7180723 commit db67d62

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.
@@ -1023,9 +1024,7 @@ To completely override the default values that are recognized as missing, specif
10231024
.. _io.navaluesconst:
10241025

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

10301029
.. code-block:: python
10311030

0 commit comments

Comments
 (0)