From fd5e25ff108eeb712814b892168b4b7224b173a8 Mon Sep 17 00:00:00 2001 From: Minh Phan Date: Mon, 22 Jun 2020 09:53:20 +0800 Subject: [PATCH] Fix DataFrame/Series stack/unstack docs --- pandas/core/frame.py | 4 ---- pandas/core/series.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d12ebeafe8510..7b5938f44c523 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6739,8 +6739,6 @@ def stack(self, level=-1, dropna=True): level(s) is (are) taken from the prescribed level(s) and the output is a DataFrame. - The new index levels are sorted. - Parameters ---------- level : int, str, list, default -1 @@ -6976,8 +6974,6 @@ def unstack(self, level=-1, fill_value=None): If the index is not a MultiIndex, the output will be a Series (the analogue of stack when the columns are not a MultiIndex). - The level involved will automatically get sorted. - Parameters ---------- level : int, str, or list of these, default -1 (last level) diff --git a/pandas/core/series.py b/pandas/core/series.py index cab8dd133b579..2ec645983e84f 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3823,8 +3823,6 @@ def unstack(self, level=-1, fill_value=None): """ Unstack, also known as pivot, Series with MultiIndex to produce DataFrame. - The level involved will automatically get sorted. - Parameters ---------- level : int, str, or list of these, default last level