Skip to content

Commit a013cc2

Browse files
committed
remove duplicate na values in in io.rst
1 parent 08a1be9 commit a013cc2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/source/io.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,8 @@ 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:
229-
``'-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN', '#N/A N/A', '#N/A', 'N/A', 'n/a', 'NA',
230-
'#NA', 'NULL', 'null', 'NaN', '-NaN', 'nan', '-nan', ''``.
228+
NA values. By default the following values are interpreted as NaN: See :ref:`na values const
229+
<io.navaluesconst>` below.
231230
keep_default_na : boolean, default ``True``
232231
If na_values are specified and keep_default_na is ``False`` the default NaN
233232
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
10301029
``[5.0,5]`` are recognized as ``NaN``.
10311030

10321031
To completely override the default values that are recognized as missing, specify ``keep_default_na=False``.
1033-
The default ``NaN`` recognized values are ``['-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN', '#N/A','N/A', 'NA',
1034-
'#NA', 'NULL', 'NaN', '-NaN', 'nan', '-nan']``. Although a 0-length string
1032+
1033+
.. _io.navaluesconst:
1034+
1035+
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
10351037
``''`` is not included in the default ``NaN`` values list, it is still treated
10361038
as a missing value.
10371039

0 commit comments

Comments
 (0)