Skip to content

Commit 748d90f

Browse files
committed
These errors make no sense and contradict what I am seeing
1 parent ea15154 commit 748d90f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/io/excel/_base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def read_excel(
482482
sheet_name: str | int | list[IntStrT] | None = 0,
483483
*,
484484
# If sheet name and table name are specified -> Nested Dictionary of DataFrames
485-
table_name: str | list[str] | None = 0,
485+
table_name: str | int | list[str] | None = 0,
486486
header: int | Sequence[int] | None = 0,
487487
names: SequenceNotStr[Hashable] | range | None = None,
488488
index_col: int | str | Sequence[int] | None = None,
@@ -513,7 +513,7 @@ def read_excel(
513513
storage_options: StorageOptions | None = None,
514514
dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default,
515515
engine_kwargs: dict | None = None,
516-
) -> DataFrame | dict[IntStrT, DataFrame] | dict[str, DataFrame]:
516+
) -> DataFrame | list[DataFrame] | dict[str, DataFrame]:
517517
check_dtype_backend(dtype_backend)
518518
should_close = False
519519
if engine_kwargs is None:
@@ -1998,6 +1998,10 @@ def sheet_names(self):
19981998
"""
19991999
return self._reader.sheet_names
20002000

2001+
@property
2002+
def table_names(self):
2003+
return self._reader.table_names
2004+
20012005
def close(self) -> None:
20022006
"""close io if necessary"""
20032007
self._reader.close()

0 commit comments

Comments
 (0)