Skip to content

Commit 4377dd1

Browse files
Added str to index_col attribute in the read_excel function description (#55857)
1 parent 64d515a commit 4377dd1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/io/excel/_base.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def read_excel(
391391
*,
392392
header: int | Sequence[int] | None = ...,
393393
names: SequenceNotStr[Hashable] | range | None = ...,
394-
index_col: int | Sequence[int] | None = ...,
394+
index_col: int | str | Sequence[int] | None = ...,
395395
usecols: int
396396
| str
397397
| Sequence[int]
@@ -430,7 +430,7 @@ def read_excel(
430430
*,
431431
header: int | Sequence[int] | None = ...,
432432
names: SequenceNotStr[Hashable] | range | None = ...,
433-
index_col: int | Sequence[int] | None = ...,
433+
index_col: int | str | Sequence[int] | None = ...,
434434
usecols: int
435435
| str
436436
| Sequence[int]
@@ -469,7 +469,7 @@ def read_excel(
469469
*,
470470
header: int | Sequence[int] | None = 0,
471471
names: SequenceNotStr[Hashable] | range | None = None,
472-
index_col: int | Sequence[int] | None = None,
472+
index_col: int | str | Sequence[int] | None = None,
473473
usecols: int
474474
| str
475475
| Sequence[int]
@@ -681,7 +681,7 @@ def _calc_rows(
681681
----------
682682
header : int, list of int, or None
683683
See read_excel docstring.
684-
index_col : int, list of int, or None
684+
index_col : int, str, list of int, or None
685685
See read_excel docstring.
686686
skiprows : list-like, int, callable, or None
687687
See read_excel docstring.

0 commit comments

Comments
 (0)