Skip to content

Commit 963ab97

Browse files
committed
doc string improvements
1 parent 16f9f6a commit 963ab97

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/io/html.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def read_html(
935935
skiprows: Union[int, Sequence[int], slice, None] = None,
936936
attrs: Optional[Dict[str, str]] = None,
937937
parse_dates: bool = False,
938-
thousands: str = ",",
938+
thousands: Optional[str] = ",",
939939
encoding: Optional[str] = None,
940940
decimal: str = ".",
941941
converters: Optional[dict] = None,
@@ -961,26 +961,26 @@ def read_html(
961961
This value is converted to a regular expression so that there is
962962
consistent behavior between Beautiful Soup and lxml.
963963
964-
flavor : str or None
964+
flavor : str, optional
965965
The parsing engine to use. 'bs4' and 'html5lib' are synonymous with
966966
each other, they are both there for backwards compatibility. The
967967
default of ``None`` tries to use ``lxml`` to parse and if that fails it
968968
falls back on ``bs4`` + ``html5lib``.
969969
970-
header : int or list-like or None, optional
970+
header : int or list-like, optional
971971
The row (or list of rows for a :class:`~pandas.MultiIndex`) to use to
972972
make the columns headers.
973973
974-
index_col : int or list-like or None, optional
974+
index_col : int or list-like, optional
975975
The column (or list of columns) to use to create the index.
976976
977-
skiprows : int or list-like or None, optional
977+
skiprows : int, list-like or slice, optional
978978
Number of rows to skip after parsing the column integer. 0-based. If a
979979
sequence of integers or a slice is given, will skip the rows indexed by
980980
that sequence. Note that a single element sequence means 'skip the nth
981981
row' whereas an integer means 'skip n rows'.
982982
983-
attrs : dict or None, optional
983+
attrs : dict, optional
984984
This is a dictionary of attributes that you can pass to use to identify
985985
the table in the HTML. These are not checked for validity before being
986986
passed to lxml or Beautiful Soup. However, these attributes must be
@@ -1008,7 +1008,7 @@ def read_html(
10081008
thousands : str, optional
10091009
Separator to use to parse thousands. Defaults to ``','``.
10101010
1011-
encoding : str or None, optional
1011+
encoding : str, optional
10121012
The encoding used to decode the web page. Defaults to ``None``.``None``
10131013
preserves the previous encoding behavior, which depends on the
10141014
underlying parser library (e.g., the parser library will try to use

0 commit comments

Comments
 (0)