We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bfb70f commit 39ce914Copy full SHA for 39ce914
pandas/core/frame.py
@@ -2439,10 +2439,9 @@ def unstack(self, level=-1):
2439
"""
2440
Pivot a level of the (necessarily hierarchical) index labels, returning
2441
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)
+ consists of the pivoted index labels. If the index is not a MultiIndex,
+ the output will be a Series (the analogue of stack when the columns are
+ not a MultiIndex)
2446
2447
Parameters
2448
----------
0 commit comments