|
24 | 24 | AbstractMethodError, |
25 | 25 | EmptyDataError, |
26 | 26 | ) |
27 | | -from pandas.util._decorators import ( |
28 | | - doc, |
29 | | - set_module, |
30 | | -) |
| 27 | +from pandas.util._decorators import set_module |
31 | 28 | from pandas.util._validators import check_dtype_backend |
32 | 29 |
|
33 | 30 | from pandas.core.dtypes.common import is_list_like |
|
36 | 33 | from pandas.core.indexes.base import Index |
37 | 34 | from pandas.core.indexes.multi import MultiIndex |
38 | 35 | from pandas.core.series import Series |
39 | | -from pandas.core.shared_docs import _shared_docs |
40 | 36 |
|
41 | 37 | from pandas.io.common import ( |
42 | 38 | get_handle, |
@@ -1024,7 +1020,6 @@ def _parse( |
1024 | 1020 |
|
1025 | 1021 |
|
1026 | 1022 | @set_module("pandas") |
1027 | | -@doc(storage_options=_shared_docs["storage_options"]) |
1028 | 1023 | def read_html( |
1029 | 1024 | io: FilePath | ReadBuffer[str], |
1030 | 1025 | *, |
@@ -1155,7 +1150,15 @@ def read_html( |
1155 | 1150 |
|
1156 | 1151 | .. versionadded:: 2.0 |
1157 | 1152 |
|
1158 | | - {storage_options} |
| 1153 | + storage_options : dict, optional |
| 1154 | + Extra options that make sense for a particular storage connection, e.g. |
| 1155 | + host, port, username, password, etc. For HTTP(S) URLs the key-value pairs |
| 1156 | + are forwarded to ``urllib.request.Request`` as header options. For other |
| 1157 | + URLs (e.g. starting with "s3://", and "gcs://") the key-value pairs are |
| 1158 | + forwarded to ``fsspec.open``. Please see ``fsspec`` and ``urllib`` for more |
| 1159 | + details, and for more examples on storage options refer `here |
| 1160 | + <https://pandas.pydata.org/docs/user_guide/io.html? |
| 1161 | + highlight=storage_options#reading-writing-remote-files>`_. |
1159 | 1162 |
|
1160 | 1163 | .. versionadded:: 2.1.0 |
1161 | 1164 |
|
|
0 commit comments