Skip to content

Commit 0305656

Browse files
docs: clarify None case behavior for sheet_name in pandas.read_excel (#60924)
ready, set, go!
1 parent b601a0c commit 0305656

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/io/excel/_base.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
Strings are used for sheet names. Integers are used in zero-indexed
116116
sheet positions (chart sheets do not count as a sheet position).
117117
Lists of strings/integers are used to request multiple sheets.
118-
Specify ``None`` to get all worksheets.
118+
When ``None``, will return a dictionary containing DataFrames for each sheet.
119119
120120
Available cases:
121121
@@ -124,7 +124,7 @@
124124
* ``"Sheet1"``: Load sheet with name "Sheet1"
125125
* ``[0, 1, "Sheet5"]``: Load first, second and sheet named "Sheet5"
126126
as a dict of `DataFrame`
127-
* ``None``: All worksheets.
127+
* ``None``: Returns a dictionary containing DataFrames for each sheet..
128128
129129
header : int, list of int, default 0
130130
Row (0-indexed) to use for the column labels of the parsed
@@ -1649,7 +1649,8 @@ def parse(
16491649
Strings are used for sheet names. Integers are used in zero-indexed
16501650
sheet positions (chart sheets do not count as a sheet position).
16511651
Lists of strings/integers are used to request multiple sheets.
1652-
Specify ``None`` to get all worksheets.
1652+
When ``None``, will return a dictionary containing DataFrames for
1653+
each sheet.
16531654
header : int, list of int, default 0
16541655
Row (0-indexed) to use for the column labels of the parsed
16551656
DataFrame. If a list of integers is passed those row positions will

0 commit comments

Comments
 (0)