diff --git a/pandas/io/html.py b/pandas/io/html.py index d3a37ac526a41..a16c73029114b 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -24,10 +24,7 @@ AbstractMethodError, EmptyDataError, ) -from pandas.util._decorators import ( - doc, - set_module, -) +from pandas.util._decorators import set_module from pandas.util._validators import check_dtype_backend from pandas.core.dtypes.common import is_list_like @@ -36,7 +33,6 @@ from pandas.core.indexes.base import Index from pandas.core.indexes.multi import MultiIndex from pandas.core.series import Series -from pandas.core.shared_docs import _shared_docs from pandas.io.common import ( get_handle, @@ -1024,7 +1020,6 @@ def _parse( @set_module("pandas") -@doc(storage_options=_shared_docs["storage_options"]) def read_html( io: FilePath | ReadBuffer[str], *, @@ -1155,7 +1150,15 @@ def read_html( .. versionadded:: 2.0 - {storage_options} + storage_options : dict, optional + Extra options that make sense for a particular storage connection, e.g. + host, port, username, password, etc. For HTTP(S) URLs the key-value pairs + are forwarded to ``urllib.request.Request`` as header options. For other + URLs (e.g. starting with "s3://", and "gcs://") the key-value pairs are + forwarded to ``fsspec.open``. Please see ``fsspec`` and ``urllib`` for more + details, and for more examples on storage options refer `here + `_. .. versionadded:: 2.1.0