@@ -2032,7 +2032,8 @@ 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_params = fmt .common_docstring ,
2035
+ @Substitution (shared_params1 = fmt .common_docstring [:- 320 ],
2036
+ shared_params2 = fmt .common_docstring [- 315 :- 5 ],
2036
2037
returns = fmt .return_docstring )
2037
2038
def to_string (self , buf = None , columns = None , col_space = None , header = True ,
2038
2039
index = True , na_rep = 'NaN' , formatters = None , float_format = None ,
@@ -2041,13 +2042,11 @@ def to_string(self, buf=None, columns=None, col_space=None, header=True,
2041
2042
show_dimensions = False ):
2042
2043
"""
2043
2044
Render a DataFrame to a console-friendly tabular output.
2044
-
2045
- %(shared_params)s
2045
+ %(shared_params1)s
2046
2046
line_width : int, optional
2047
2047
Width to wrap a line in characters.
2048
-
2048
+ %(shared_params2)s
2049
2049
%(returns)s
2050
-
2051
2050
See Also
2052
2051
--------
2053
2052
to_html : Convert DataFrame to HTML.
@@ -2081,7 +2080,8 @@ def to_string(self, buf=None, columns=None, col_space=None, header=True,
2081
2080
return result
2082
2081
2083
2082
@Substitution (header = 'whether to print column labels, default True' )
2084
- @Substitution (shared_params = fmt .common_docstring ,
2083
+ @Substitution (shared_params1 = fmt .common_docstring [:- 320 ],
2084
+ shared_params2 = fmt .common_docstring [- 315 :- 5 ],
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
-
2095
- %(shared_params)s
2094
+ %(shared_params1)s
2096
2095
bold_rows : boolean, default True
2097
2096
Make the row labels bold in the output
2098
2097
classes : str or list or tuple, default None
2099
2098
CSS class(es) to apply to the resulting html table
2100
2099
escape : boolean, default True
2101
2100
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,9 +2116,7 @@ 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
-
2120
2119
%(returns)s
2121
-
2122
2120
See Also
2123
2121
--------
2124
2122
to_string : Convert DataFrame to a string.
0 commit comments