127
127
as a dict of `DataFrame`
128
128
* ``None``: All worksheets.
129
129
130
- table_name: str, list of str, or None, default 0
130
+ table_name : str, list of str, or None, default 0
131
131
Strings are used for table_names that correspond to Excel Table names.
132
132
Lists of strings are used to request multiple tables.
133
133
Specify ``None`` to get all tables.
@@ -431,7 +431,7 @@ def read_excel(
431
431
skipfooter : int = ...,
432
432
storage_options : StorageOptions = ...,
433
433
dtype_backend : DtypeBackend | lib .NoDefault = ...,
434
- ) -> DataFrame | list [DataFrame ]: ...
434
+ ) -> DataFrame | list [DataFrame ] | dict [ str , DataFrame ] : ...
435
435
436
436
437
437
@overload
@@ -472,7 +472,7 @@ def read_excel(
472
472
skipfooter : int = ...,
473
473
storage_options : StorageOptions = ...,
474
474
dtype_backend : DtypeBackend | lib .NoDefault = ...,
475
- ) -> dict [IntStrT , DataFrame ]: ...
475
+ ) -> DataFrame | dict [IntStrT , DataFrame ] | dict [ str , DataFrame ]: ...
476
476
477
477
478
478
@doc (storage_options = _shared_docs ["storage_options" ])
@@ -482,7 +482,7 @@ def read_excel(
482
482
sheet_name : str | int | list [IntStrT ] | None = 0 ,
483
483
* ,
484
484
# If sheet name and table name are specified -> Nested Dictionary of DataFrames
485
- table_name : str | int | list [str ] | None = 0 ,
485
+ table_name : str | list [str ] | None = 0 ,
486
486
header : int | Sequence [int ] | None = 0 ,
487
487
names : SequenceNotStr [Hashable ] | range | None = None ,
488
488
index_col : int | str | Sequence [int ] | None = None ,
@@ -513,7 +513,7 @@ def read_excel(
513
513
storage_options : StorageOptions | None = None ,
514
514
dtype_backend : DtypeBackend | lib .NoDefault = lib .no_default ,
515
515
engine_kwargs : dict | None = None ,
516
- ) -> DataFrame | dict [IntStrT , DataFrame ]:
516
+ ) -> DataFrame | dict [IntStrT , DataFrame ] | dict [ str , DataFrame ] :
517
517
check_dtype_backend (dtype_backend )
518
518
should_close = False
519
519
if engine_kwargs is None :
0 commit comments