Skip to content

Commit 6c1470f

Browse files
committed
Fixed formatting errors
1 parent 8093a25 commit 6c1470f

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

pandas/io/excel/_base.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def read_excel(
229229
* ``1``: 2nd sheet as a `DataFrame`
230230
* ``"Sheet1"``: Load sheet with name "Sheet1"
231231
* ``[0, 1, "Sheet5"]``: Load first, second and sheet named "Sheet5"
232-
as a dict of `DataFrame`
232+
as a dict of `DataFrame`
233233
* ``None``: Returns a dictionary containing DataFrames for each sheet..
234234
235235
header : int, list of int, default 0
@@ -253,13 +253,13 @@ def read_excel(
253253
usecols : str, list-like, or callable, default None
254254
* If None, then parse all columns.
255255
* If str, then indicates comma separated list of Excel column letters
256-
and column ranges (e.g. "A:E" or "A,C,E:F"). Ranges are inclusive of
257-
both sides.
256+
and column ranges (e.g. "A:E" or "A,C,E:F"). Ranges are inclusive of
257+
both sides.
258258
* If list of int, then indicates list of column numbers to be parsed
259-
(0-indexed).
259+
(0-indexed).
260260
* If list of string, then indicates list of column names to be parsed.
261261
* If callable, then evaluate each column name against it and parse the
262-
column if the callable returns ``True``.
262+
column if the callable returns ``True``.
263263
264264
Returns a subset of the columns according to behavior above.
265265
dtype : Type name or dict of column -> type, default None
@@ -315,13 +315,13 @@ def read_excel(
315315
Depending on whether ``na_values`` is passed in, the behavior is as follows:
316316
317317
* If ``keep_default_na`` is True, and ``na_values`` are specified,
318-
``na_values`` is appended to the default NaN values used for parsing.
318+
``na_values`` is appended to the default NaN values used for parsing.
319319
* If ``keep_default_na`` is True, and ``na_values`` are not specified, only
320-
the default NaN values are used for parsing.
320+
the default NaN values are used for parsing.
321321
* If ``keep_default_na`` is False, and ``na_values`` are specified, only
322-
the NaN values specified ``na_values`` are used for parsing.
322+
the NaN values specified ``na_values`` are used for parsing.
323323
* If ``keep_default_na`` is False, and ``na_values`` are not specified, no
324-
strings will be parsed as NaN.
324+
strings will be parsed as NaN.
325325
326326
Note that if `na_filter` is passed in as False, the ``keep_default_na`` and
327327
``na_values`` parameters will be ignored.
@@ -336,11 +336,11 @@ def read_excel(
336336
337337
* ``bool``. If True -> try parsing the index.
338338
* ``list`` of int or names. e.g. If [1, 2, 3] -> try parsing columns 1, 2, 3
339-
each as a separate date column.
339+
each as a separate date column.
340340
* ``list`` of lists. e.g. If [[1, 3]] -> combine columns 1 and 3 and parse as
341-
a single date column.
341+
a single date column.
342342
* ``dict``, e.g. {'foo' : [1, 3]} -> parse columns 1, 3 as date and call
343-
result 'foo'
343+
result 'foo'
344344
345345
If a column or index contains an unparsable date, the entire column or
346346
index will be returned unaltered as an object data type. If you don`t want to
@@ -350,11 +350,12 @@ def read_excel(
350350
351351
Note: A fast-path exists for iso8601-formatted dates.
352352
date_format : str or dict of column -> format, default ``None``
353-
If used in conjunction with ``parse_dates``, will parse dates according to this
354-
format. For anything more complex,
355-
please read in as ``object`` and then apply :func:`to_datetime` as-needed.
353+
If used in conjunction with ``parse_dates``, will parse dates according to this
354+
format. For anything more complex,
355+
please read in as ``object`` and then apply :func:`to_datetime` as-needed.
356+
357+
.. versionadded:: 2.0.0
356358
357-
.. versionadded:: 2.0.0
358359
thousands : str, default None
359360
Thousands separator for parsing string columns to numeric. Note that
360361
this parameter is only necessary for columns stored as TEXT in Excel,
@@ -389,6 +390,7 @@ def read_excel(
389390
390391
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
391392
* ``"pyarrow"``: returns pyarrow-backed nullable
393+
392394
:class:`ArrowDtype` :class:`DataFrame`
393395
394396
.. versionadded:: 2.0

0 commit comments

Comments
 (0)