From a4e89d8a8e5f1440317cf56643c509fd0c3653e1 Mon Sep 17 00:00:00 2001 From: wanglc02 Date: Mon, 18 Mar 2024 15:00:19 +0800 Subject: [PATCH] Fix a bug in the docstring of stack method --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d00c659392ef3..8fd0cd8c66e3c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9305,7 +9305,7 @@ def stack( section. sort : bool, default True Whether to sort the levels of the resulting MultiIndex. - future_stack : bool, default False + future_stack : bool, default True Whether to use the new implementation that will replace the current implementation in pandas 3.0. When True, dropna and sort have no impact on the result and must remain unspecified. See :ref:`pandas 2.1.0 Release