From 39b0f25e698086a9bdf7a3ad16a1aea493082534 Mon Sep 17 00:00:00 2001 From: Stijn Van Hoey Date: Mon, 21 Nov 2022 12:46:59 +0100 Subject: [PATCH] Fix indendation in docstring 'by' --- pandas/core/frame.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 7b181a3e8e391..a422c6a33d2d7 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -247,13 +247,13 @@ inplace : bool, default False Whether to modify the DataFrame rather than creating a new one.""", "optional_by": """ - by : str or list of str - Name or list of names to sort by. +by : str or list of str + Name or list of names to sort by. - - if `axis` is 0 or `'index'` then `by` may contain index - levels and/or column labels. - - if `axis` is 1 or `'columns'` then `by` may contain column - levels and/or index labels.""", + - if `axis` is 0 or `'index'` then `by` may contain index + levels and/or column labels. + - if `axis` is 1 or `'columns'` then `by` may contain column + levels and/or index labels.""", "optional_labels": """labels : array-like, optional New labels / index to conform the axis specified by 'axis' to.""", "optional_axis": """axis : int or str, optional