From 4e42150cf451076063636bc90dc463d5ff66d152 Mon Sep 17 00:00:00 2001 From: Tess Afanasyeva Date: Sat, 23 Mar 2024 16:31:43 +0000 Subject: [PATCH] fix list indentation in pandas.DataFrame.stack --- pandas/core/frame.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5d10a5541f556..8fb400872378c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9288,10 +9288,9 @@ def stack( DataFrame. The new inner-most levels are created by pivoting the columns of the current dataframe: - - if the columns have a single level, the output is a Series; - - if the columns have multiple levels, the new index - level(s) is (are) taken from the prescribed level(s) and - the output is a DataFrame. + - if the columns have a single level, the output is a Series; + - if the columns have multiple levels, the new index level(s) is (are) + taken from the prescribed level(s) and the output is a DataFrame. Parameters ----------