Skip to content

Commit d4889bc

Browse files
authored
DOC: Update the double quotes for the NA value to single quotes (pandas-dev#54136)
1 parent 2907b20 commit d4889bc

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

pandas/io/parsers/readers.py

+10-9
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
URL schemes include http, ftp, s3, gs, and file. For file URLs, a host is
9999
expected. A local file could be: file://localhost/path/to/table.csv.
100100
101-
If you want to pass in a path object, ``pandas`` accepts any ``os.PathLike``.
101+
If you want to pass in a path object, pandas accepts any ``os.PathLike``.
102102
103103
By file-like object, we refer to objects with a ``read()`` method, such as
104104
a file handle (e.g. via builtin ``open`` function) or ``StringIO``.
@@ -123,7 +123,7 @@
123123
``header=None``. Explicitly pass ``header=0`` to be able to
124124
replace existing names. The header can be a list of integers that
125125
specify row locations for a :class:`~pandas.MultiIndex` on the columns
126-
e.g. ``[0,1,3]``. Intervening rows that are not specified will be
126+
e.g. ``[0, 1, 3]``. Intervening rows that are not specified will be
127127
skipped (e.g. 2 in this example is skipped). Note that this
128128
parameter ignores commented lines and empty lines if
129129
``skip_blank_lines=True``, so ``header=0`` denotes the first line of
@@ -137,7 +137,7 @@
137137
indices. If a sequence of labels or indices is given, :class:`~pandas.MultiIndex`
138138
will be formed for the row labels.
139139
140-
Note: ``index_col=False`` can be used to force ``pandas`` to *not* use the first
140+
Note: ``index_col=False`` can be used to force pandas to *not* use the first
141141
column as the index, e.g., when you have a malformed file with delimiters at
142142
the end of each line.
143143
usecols : list of Hashable or Callable, optional
@@ -205,9 +205,10 @@
205205
na_values : Hashable, Iterable of Hashable or dict of {{Hashable : Iterable}}, optional
206206
Additional strings to recognize as ``NA``/``NaN``. If ``dict`` passed, specific
207207
per-column ``NA`` values. By default the following values are interpreted as
208-
``NaN``: '"""
209-
+ fill("', '".join(sorted(STR_NA_VALUES)), 70, subsequent_indent=" ")
210-
+ """'.
208+
``NaN``: " """
209+
+ fill('", "'.join(sorted(STR_NA_VALUES)), 70, subsequent_indent=" ")
210+
+ """ ".
211+
211212
keep_default_na : bool, default True
212213
Whether or not to include the default ``NaN`` values when parsing the data.
213214
Depending on whether ``na_values`` is passed in, the behavior is as follows:
@@ -251,7 +252,7 @@
251252
252253
Note: A fast-path exists for iso8601-formatted dates.
253254
infer_datetime_format : bool, default False
254-
If ``True`` and ``parse_dates`` is enabled, ``pandas`` will attempt to infer the
255+
If ``True`` and ``parse_dates`` is enabled, pandas will attempt to infer the
255256
format of the ``datetime`` strings in the columns, and if it can be inferred,
256257
switch to a faster method of parsing them. In some cases this can increase
257258
the parsing speed by 5-10x.
@@ -265,7 +266,7 @@
265266
date_parser : Callable, optional
266267
Function to use for converting a sequence of string columns to an array of
267268
``datetime`` instances. The default uses ``dateutil.parser.parser`` to do the
268-
conversion. ``pandas`` will try to call ``date_parser`` in three different ways,
269+
conversion. pandas will try to call ``date_parser`` in three different ways,
269270
advancing to the next if an exception occurs: 1) Pass one or more arrays
270271
(as defined by ``parse_dates``) as arguments; 2) concatenate (row-wise) the
271272
string values from the columns defined by ``parse_dates`` into a single array
@@ -407,7 +408,7 @@
407408
float_precision : {{'high', 'legacy', 'round_trip'}}, optional
408409
Specifies which converter the C engine should use for floating-point
409410
values. The options are ``None`` or ``'high'`` for the ordinary converter,
410-
``'legacy'`` for the original lower precision ``pandas`` converter, and
411+
``'legacy'`` for the original lower precision pandas converter, and
411412
``'round_trip'`` for the round-trip converter.
412413
413414
.. versionchanged:: 1.2

0 commit comments

Comments
 (0)