Skip to content

Commit

Permalink
DOC: fix list indentation in pandas.DataFrame.stack (pandas-dev#57975)
Browse files Browse the repository at this point in the history
  • Loading branch information
TessAfanasyeva authored Mar 25, 2024
1 parent 4f145b3 commit c900dc8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down

0 comments on commit c900dc8

Please sign in to comment.