Skip to content

Commit b1053c4

Browse files
DOC: df.to_html documentation incorrectly contains min_rows optional param (#44331)
1 parent 917d04f commit b1053c4

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

pandas/core/frame.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -1068,11 +1068,11 @@ def to_string(
10681068
index_names: bool = True,
10691069
justify: str | None = None,
10701070
max_rows: int | None = None,
1071-
min_rows: int | None = None,
10721071
max_cols: int | None = None,
10731072
show_dimensions: bool = False,
10741073
decimal: str = ".",
10751074
line_width: int | None = None,
1075+
min_rows: int | None = None,
10761076
max_colwidth: int | None = None,
10771077
encoding: str | None = None,
10781078
) -> str | None:
@@ -1081,6 +1081,9 @@ def to_string(
10811081
%(shared_params)s
10821082
line_width : int, optional
10831083
Width to wrap a line in characters.
1084+
min_rows : int, optional
1085+
The number of rows to display in the console in a truncated repr
1086+
(when number of rows is above `max_rows`).
10841087
max_colwidth : int, optional
10851088
Max width to truncate each column in characters. By default, no limit.
10861089
@@ -2839,15 +2842,14 @@ def to_html(
28392842
border : int
28402843
A ``border=border`` attribute is included in the opening
28412844
`<table>` tag. Default ``pd.options.display.html.border``.
2842-
encoding : str, default "utf-8"
2843-
Set character encoding.
2844-
2845-
.. versionadded:: 1.0
2846-
28472845
table_id : str, optional
28482846
A css id is included in the opening `<table>` tag if specified.
28492847
render_links : bool, default False
28502848
Convert URLs to HTML links.
2849+
encoding : str, default "utf-8"
2850+
Set character encoding.
2851+
2852+
.. versionadded:: 1.0
28512853
%(returns)s
28522854
See Also
28532855
--------

pandas/io/formats/format.py

-3
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@
164164
* unset.
165165
max_rows : int, optional
166166
Maximum number of rows to display in the console.
167-
min_rows : int, optional
168-
The number of rows to display in the console in a truncated repr
169-
(when number of rows is above `max_rows`).
170167
max_cols : int, optional
171168
Maximum number of columns to display in the console.
172169
show_dimensions : bool, default False

0 commit comments

Comments
 (0)