From dbac8924cf89df51adb851afe62904ee1ea17fd2 Mon Sep 17 00:00:00 2001 From: Angela Ambroz Date: Tue, 1 Oct 2019 19:18:43 -0400 Subject: [PATCH] DOC: Pandas.Series.drop docstring PR02 (#27976) --- pandas/core/series.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index b0616c053df6d..8c1bda47b0112 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -4154,9 +4154,13 @@ def drop( Index labels to drop. axis : 0, default 0 Redundant for application on Series. - index, columns : None - Redundant for application on Series, but index can be used instead - of labels. + index : single label or list-like + Redundant for application on Series, but 'index' can be used instead + of 'labels'. + + .. versionadded:: 0.21.0 + columns : single label or list-like + No change is made to the Series; use 'index' or 'labels' instead. .. versionadded:: 0.21.0 level : int or level name, optional