Skip to content

Commit 8c1d668

Browse files
committed
remove duplicate na values in in io.rst
1 parent ef3df60 commit 8c1d668

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.
@@ -1020,8 +1019,11 @@ the corresponding equivalent values will also imply a missing value (in this cas
10201019
``[5.0,5]`` are recognized as ``NaN``.
10211020

10221021
To completely override the default values that are recognized as missing, specify ``keep_default_na=False``.
1023-
The default ``NaN`` recognized values are ``['-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN', '#N/A','N/A', 'NA',
1024-
'#NA', 'NULL', 'NaN', '-NaN', 'nan', '-nan']``. Although a 0-length string
1022+
1023+
.. _io.navaluesconst:
1024+
1025+
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
10251027
``''`` is not included in the default ``NaN`` values list, it is still treated
10261028
as a missing value.
10271029

0 commit comments

Comments
 (0)