@@ -142,8 +142,7 @@ class _read_shared(TypedDict, Generic[HashableT], total=False):
142
142
_read_shared = dict
143
143
144
144
145
- _doc_read_csv_and_table = (
146
- r"""
145
+ _doc_read_csv_and_table = r"""
147
146
{summary}
148
147
149
148
Also supports optionally iterating or breaking of the file
@@ -272,9 +271,7 @@ class _read_shared(TypedDict, Generic[HashableT], total=False):
272
271
na_values : Hashable, Iterable of Hashable or dict of {{Hashable : Iterable}}, optional
273
272
Additional strings to recognize as ``NA``/``NaN``. If ``dict`` passed, specific
274
273
per-column ``NA`` values. By default the following values are interpreted as
275
- ``NaN``: " """
276
- + fill ('", "' .join (sorted (STR_NA_VALUES )), 70 , subsequent_indent = " " )
277
- + """ ".
274
+ ``NaN``: "{na_values_str}".
278
275
279
276
keep_default_na : bool, default True
280
277
Whether or not to include the default ``NaN`` values when parsing the data.
@@ -545,7 +542,6 @@ class _read_shared(TypedDict, Generic[HashableT], total=False):
545
542
col 3 datetime64[ns]
546
543
dtype: object
547
544
"""
548
- )
549
545
550
546
551
547
class _C_Parser_Defaults (TypedDict ):
@@ -756,6 +752,9 @@ def read_csv(
756
752
summary = "Read a comma-separated values (csv) file into DataFrame." ,
757
753
see_also_func_name = "read_table" ,
758
754
see_also_func_summary = "Read general delimited file into DataFrame." ,
755
+ na_values_str = fill (
756
+ '", "' .join (sorted (STR_NA_VALUES )), 70 , subsequent_indent = " "
757
+ ),
759
758
_default_sep = "','" ,
760
759
storage_options = _shared_docs ["storage_options" ],
761
760
decompression_options = _shared_docs ["decompression_options" ]
@@ -888,6 +887,9 @@ def read_table(
888
887
see_also_func_summary = (
889
888
"Read a comma-separated values (csv) file into DataFrame."
890
889
),
890
+ na_values_str = fill (
891
+ '", "' .join (sorted (STR_NA_VALUES )), 70 , subsequent_indent = " "
892
+ ),
891
893
_default_sep = r"'\\t' (tab-stop)" ,
892
894
storage_options = _shared_docs ["storage_options" ],
893
895
decompression_options = _shared_docs ["decompression_options" ]
0 commit comments