Skip to content

Commit 45952c7

Browse files
authored
Fix DataFrame/Series stack/unstack docs (#34927)
1 parent d5139bb commit 45952c7

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

pandas/core/frame.py

-4
Original file line numberDiff line numberDiff line change
@@ -6783,8 +6783,6 @@ def stack(self, level=-1, dropna=True):
67836783
level(s) is (are) taken from the prescribed level(s) and
67846784
the output is a DataFrame.
67856785
6786-
The new index levels are sorted.
6787-
67886786
Parameters
67896787
----------
67906788
level : int, str, list, default -1
@@ -7020,8 +7018,6 @@ def unstack(self, level=-1, fill_value=None):
70207018
If the index is not a MultiIndex, the output will be a Series
70217019
(the analogue of stack when the columns are not a MultiIndex).
70227020
7023-
The level involved will automatically get sorted.
7024-
70257021
Parameters
70267022
----------
70277023
level : int, str, or list of these, default -1 (last level)

pandas/core/series.py

-2
Original file line numberDiff line numberDiff line change
@@ -3835,8 +3835,6 @@ def unstack(self, level=-1, fill_value=None):
38353835
"""
38363836
Unstack, also known as pivot, Series with MultiIndex to produce DataFrame.
38373837
3838-
The level involved will automatically get sorted.
3839-
38403838
Parameters
38413839
----------
38423840
level : int, str, or list of these, default last level

0 commit comments

Comments
 (0)