|
98 | 98 | URL schemes include http, ftp, s3, gs, and file. For file URLs, a host is
|
99 | 99 | expected. A local file could be: file://localhost/path/to/table.csv.
|
100 | 100 |
|
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``. |
102 | 102 |
|
103 | 103 | By file-like object, we refer to objects with a ``read()`` method, such as
|
104 | 104 | a file handle (e.g. via builtin ``open`` function) or ``StringIO``.
|
|
123 | 123 | ``header=None``. Explicitly pass ``header=0`` to be able to
|
124 | 124 | replace existing names. The header can be a list of integers that
|
125 | 125 | 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 |
127 | 127 | skipped (e.g. 2 in this example is skipped). Note that this
|
128 | 128 | parameter ignores commented lines and empty lines if
|
129 | 129 | ``skip_blank_lines=True``, so ``header=0`` denotes the first line of
|
|
137 | 137 | indices. If a sequence of labels or indices is given, :class:`~pandas.MultiIndex`
|
138 | 138 | will be formed for the row labels.
|
139 | 139 |
|
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 |
141 | 141 | column as the index, e.g., when you have a malformed file with delimiters at
|
142 | 142 | the end of each line.
|
143 | 143 | usecols : list of Hashable or Callable, optional
|
|
205 | 205 | na_values : Hashable, Iterable of Hashable or dict of {{Hashable : Iterable}}, optional
|
206 | 206 | Additional strings to recognize as ``NA``/``NaN``. If ``dict`` passed, specific
|
207 | 207 | 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 | +
|
211 | 212 | keep_default_na : bool, default True
|
212 | 213 | Whether or not to include the default ``NaN`` values when parsing the data.
|
213 | 214 | Depending on whether ``na_values`` is passed in, the behavior is as follows:
|
|
251 | 252 |
|
252 | 253 | Note: A fast-path exists for iso8601-formatted dates.
|
253 | 254 | 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 |
255 | 256 | format of the ``datetime`` strings in the columns, and if it can be inferred,
|
256 | 257 | switch to a faster method of parsing them. In some cases this can increase
|
257 | 258 | the parsing speed by 5-10x.
|
|
265 | 266 | date_parser : Callable, optional
|
266 | 267 | Function to use for converting a sequence of string columns to an array of
|
267 | 268 | ``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, |
269 | 270 | advancing to the next if an exception occurs: 1) Pass one or more arrays
|
270 | 271 | (as defined by ``parse_dates``) as arguments; 2) concatenate (row-wise) the
|
271 | 272 | string values from the columns defined by ``parse_dates`` into a single array
|
|
407 | 408 | float_precision : {{'high', 'legacy', 'round_trip'}}, optional
|
408 | 409 | Specifies which converter the C engine should use for floating-point
|
409 | 410 | 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 |
411 | 412 | ``'round_trip'`` for the round-trip converter.
|
412 | 413 |
|
413 | 414 | .. versionchanged:: 1.2
|
|
0 commit comments