Skip to content

Fix ReST formatting of pandas.read_excel usecols #25801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions pandas/io/excel/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,25 @@

usecols : int, str, list-like, or callable default None
Return a subset of the columns.

* If None, then parse all columns.
* If int, then indicates last column to be parsed.

.. deprecated:: 0.24.0
Pass in a list of int instead from 0 to `usecols` inclusive.
.. deprecated:: 0.24.0
Pass in a list of int instead from 0 to `usecols` inclusive.

* If str, then indicates comma separated list of Excel column letters
and column ranges (e.g. "A:E" or "A,C,E:F"). Ranges are inclusive of
both sides.
* If list of int, then indicates list of column numbers to be parsed.
* If list of string, then indicates list of column names to be parsed.

.. versionadded:: 0.24.0
.. versionadded:: 0.24.0

* If callable, then evaluate each column name against it and parse the
column if the callable returns ``True``.

.. versionadded:: 0.24.0
.. versionadded:: 0.24.0

squeeze : bool, default False
If the parsed data only contains one column then return a Series.
Expand Down