Skip to content

Commit 39ce914

Browse files
committed
DOC: cleanup unstack docstring per #588
1 parent 1bfb70f commit 39ce914

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/frame.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -2439,10 +2439,9 @@ def unstack(self, level=-1):
24392439
"""
24402440
Pivot a level of the (necessarily hierarchical) index labels, returning
24412441
a DataFrame having a new level of column labels whose inner-most level
2442-
consists of the pivoted index labels.
2443-
"Unstack" level from MultiLevel index to produce reshaped DataFrame. If
2444-
the index is not a MultiIndex, the output will be a Series (the
2445-
analogue of stack when the columns are not a MultiIndex)
2442+
consists of the pivoted index labels. If the index is not a MultiIndex,
2443+
the output will be a Series (the analogue of stack when the columns are
2444+
not a MultiIndex)
24462445
24472446
Parameters
24482447
----------

0 commit comments

Comments
 (0)