|
8 | 8 | import numbers
|
9 | 9 | import os
|
10 | 10 | import re
|
11 |
| -from typing import Dict, List, Optional, Pattern, Union |
| 11 | +from typing import Dict, List, Optional, Pattern, Union, Sequence |
12 | 12 |
|
13 | 13 | from pandas._typing import FilePathOrBuffer
|
14 | 14 | from pandas.compat._optional import import_optional_dependency
|
@@ -930,9 +930,9 @@ def read_html(
|
930 | 930 | io: FilePathOrBuffer,
|
931 | 931 | match: Union[str, Pattern] = ".+",
|
932 | 932 | flavor: Optional[str] = None,
|
933 |
| - header=None, |
934 |
| - index_col=None, |
935 |
| - skiprows=None, |
| 933 | + header: Union[int, Sequence[int], None] = None, |
| 934 | + index_col: Union[int, Sequence[int], None] = None, |
| 935 | + skiprows: Union[int, Sequence[int], slice, None] = None, |
936 | 936 | attrs: Optional[Dict[str, str]] = None,
|
937 | 937 | parse_dates: Optional[bool] = False,
|
938 | 938 | thousands: str = ",",
|
@@ -967,14 +967,14 @@ def read_html(
|
967 | 967 | default of ``None`` tries to use ``lxml`` to parse and if that fails it
|
968 | 968 | falls back on ``bs4`` + ``html5lib``.
|
969 | 969 |
|
970 |
| - header : int or list-like or None, optional |
| 970 | + header : int or sequence of ints, optional |
971 | 971 | The row (or list of rows for a :class:`~pandas.MultiIndex`) to use to
|
972 | 972 | make the columns headers.
|
973 | 973 |
|
974 |
| - index_col : int or list-like or None, optional |
| 974 | + index_col : int or sequence of ints, optional |
975 | 975 | The column (or list of columns) to use to create the index.
|
976 | 976 |
|
977 |
| - skiprows : int or list-like or slice or None, optional |
| 977 | + skiprows : int, sequence of ints or slice, optional |
978 | 978 | Number of rows to skip after parsing the column integer. 0-based. If a
|
979 | 979 | sequence of integers or a slice is given, will skip the rows indexed by
|
980 | 980 | that sequence. Note that a single element sequence means 'skip the nth
|
|
0 commit comments