From 7b876bc117bd89531f884d223c24435611a3077f Mon Sep 17 00:00:00 2001 From: Nirav <61644078+srkds@users.noreply.github.com> Date: Thu, 6 Apr 2023 21:00:15 +0530 Subject: [PATCH] Backport PR #52453: DOC: update pivot docs for version pandas 2.x --- pandas/core/frame.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ccc6949e6f2e0..1ecf5f4ee29dd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8285,8 +8285,7 @@ def groupby( Also accept list of columns names. index : str or object or a list of str, optional - Column to use to make new frame's index. If None, uses - existing index. + Column to use to make new frame's index. If not given, uses existing index. .. versionchanged:: 1.1.0 Also accept list of index names.