We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2dab1b commit de75c25Copy full SHA for de75c25
pandas/io/excel/_base.py
@@ -830,10 +830,11 @@ def _parse_sheet(
830
# header indexes reference rows after removing skiprows, so we
831
# create an index map from the without-skiprows to the
832
# original indexes.
833
+ ixmap: Union(range, list[int])
834
if skiprows is None:
- ixmap = list(range(len(data)))
835
+ ixmap = range(len(data))
836
elif is_integer(skiprows):
- ixmap = list(range(skiprows, len(data)))
837
+ ixmap = range(skiprows, len(data))
838
elif is_list_like(skiprows):
839
skiprows_set = set(cast(Sequence[int], skiprows))
840
ixmap = [ix for ix in range(len(data)) if ix not in skiprows_set]
pandas/tests/io/data/excel/test_boolean_types.xlsx
1 Byte
0 commit comments