@@ -2032,8 +2032,7 @@ def to_parquet(self, fname, engine='auto', compression='snappy',
2032
2032
@Substitution (header = 'Write out the column names. If a list of strings '
2033
2033
'is given, it is assumed to be aliases for the '
2034
2034
'column names' )
2035
- @Substitution (shared_params1 = fmt .common_docstring [:- 320 ],
2036
- shared_params2 = fmt .common_docstring [- 315 :- 5 ],
2035
+ @Substitution (shared_params = fmt .common_docstring ,
2037
2036
returns = fmt .return_docstring )
2038
2037
def to_string (self , buf = None , columns = None , col_space = None , header = True ,
2039
2038
index = True , na_rep = 'NaN' , formatters = None , float_format = None ,
@@ -2042,11 +2041,13 @@ def to_string(self, buf=None, columns=None, col_space=None, header=True,
2042
2041
show_dimensions = False ):
2043
2042
"""
2044
2043
Render a DataFrame to a console-friendly tabular output.
2045
- %(shared_params1)s
2044
+
2045
+ %(shared_params)s
2046
2046
line_width : int, optional
2047
2047
Width to wrap a line in characters.
2048
- %(shared_params2)s
2048
+
2049
2049
%(returns)s
2050
+
2050
2051
See Also
2051
2052
--------
2052
2053
to_html : Convert DataFrame to HTML.
@@ -2080,8 +2081,7 @@ def to_string(self, buf=None, columns=None, col_space=None, header=True,
2080
2081
return result
2081
2082
2082
2083
@Substitution (header = 'whether to print column labels, default True' )
2083
- @Substitution (shared_params1 = fmt .common_docstring [:- 320 ],
2084
- shared_params2 = fmt .common_docstring [- 315 :- 5 ],
2084
+ @Substitution (shared_params = fmt .common_docstring ,
2085
2085
returns = fmt .return_docstring )
2086
2086
def to_html (self , buf = None , columns = None , col_space = None , header = True ,
2087
2087
index = True , na_rep = 'NaN' , formatters = None , float_format = None ,
@@ -2091,14 +2091,14 @@ def to_html(self, buf=None, columns=None, col_space=None, header=True,
2091
2091
border = None , table_id = None ):
2092
2092
"""
2093
2093
Render a DataFrame as an HTML table.
2094
- %(shared_params1)s
2094
+
2095
+ %(shared_params)s
2095
2096
bold_rows : boolean, default True
2096
2097
Make the row labels bold in the output
2097
2098
classes : str or list or tuple, default None
2098
2099
CSS class(es) to apply to the resulting html table
2099
2100
escape : boolean, default True
2100
2101
Convert the characters <, >, and & to HTML-safe sequences.
2101
- %(shared_params2)s
2102
2102
notebook : {True, False}, default False
2103
2103
Whether the generated HTML is for IPython Notebook.
2104
2104
decimal : string, default '.'
@@ -2116,7 +2116,9 @@ def to_html(self, buf=None, columns=None, col_space=None, header=True,
2116
2116
A css id is included in the opening `<table>` tag if specified.
2117
2117
2118
2118
.. versionadded:: 0.23.0
2119
+
2119
2120
%(returns)s
2121
+
2120
2122
See Also
2121
2123
--------
2122
2124
to_string : Convert DataFrame to a string.
0 commit comments