From acc126017146370f05bf55a116c226d815862a48 Mon Sep 17 00:00:00 2001 From: Clemens Tolboom Date: Fri, 2 Aug 2019 09:57:48 +0200 Subject: [PATCH 1/2] Linebreak is bleeding into the documentation page https://pandas.pydata.org/pandas-docs/stable/reference/series.html Series.T Return the transpose, which is by And looks weird on https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.T.html#pandas.Series.T --- pandas/core/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index cfa8d25210129..d179944443afe 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -687,8 +687,7 @@ def transpose(self, *args, **kwargs): T = property( transpose, - doc="""\nReturn the transpose, which is by - definition self.\n""", + doc="""\nReturn the transpose, which is by definition self.\n""", ) @property From 378c491a8a75eeedcc84adb97f79b7e716e47a1f Mon Sep 17 00:00:00 2001 From: Clemens Tolboom Date: Sat, 3 Aug 2019 17:06:31 +0200 Subject: [PATCH 2/2] Make \n real new line As suggested by @TomAugspurger --- pandas/core/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index d179944443afe..38a8bf7171521 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -687,7 +687,9 @@ def transpose(self, *args, **kwargs): T = property( transpose, - doc="""\nReturn the transpose, which is by definition self.\n""", + doc=""" + Return the transpose, which is by definition self. + """, ) @property