We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fea7f6c + 70803d5 commit 840f88eCopy full SHA for 840f88e
pandas/core/format.py
@@ -58,18 +58,13 @@
58
the print configuration (controlled by set_option), 'right' out
59
of the box."""
60
61
-force_unicode_docstring = """
62
- force_unicode : bool, default False
63
- Always return a unicode result. Deprecated in v0.10.0 as string
64
- formatting is now rendered to unicode by default."""
65
-
66
return_docstring = """
67
68
Returns
69
-------
70
formatted : string (or unicode, depending on data and options)"""
71
72
-docstring_to_string = common_docstring + justify_docstring + force_unicode_docstring + return_docstring
+docstring_to_string = common_docstring + justify_docstring + return_docstring
73
74
class CategoricalFormatter(object):
75
@@ -300,7 +295,7 @@ class DataFrameFormatter(TableFormatter):
300
295
"""
301
296
302
297
__doc__ = __doc__ if __doc__ else ''
303
- __doc__ += docstring_to_string
298
+ __doc__ += common_docstring + justify_docstring + return_docstring
304
299
305
def __init__(self, frame, buf=None, columns=None, col_space=None,
306
header=True, index=True, na_rep='NaN', formatters=None,
pandas/core/frame.py
@@ -1414,7 +1414,7 @@ def to_stata(
1414
write_index=write_index)
1415
writer.write_file()
1416
1417
- @Appender(fmt.common_docstring + fmt.justify_docstring + fmt.return_docstring, indents=1)
+ @Appender(fmt.docstring_to_string, indents=1)
1418
def to_string(self, buf=None, columns=None, col_space=None,
1419
1420
float_format=None, sparsify=None, index_names=True,
@@ -1442,7 +1442,7 @@ def to_string(self, buf=None, columns=None, col_space=None,
1442
result = formatter.buf.getvalue()
1443
return result
1444
1445
1446
def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1447
1448
0 commit comments