From f5ba6024b4e51b56f3602652e6446b992a739028 Mon Sep 17 00:00:00 2001 From: Mar Date: Tue, 23 Jun 2020 12:58:45 -0300 Subject: [PATCH 1/3] DOC: Fix #33451 --- pandas/core/frame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d12ebeafe8510..7fc33eb92db5f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3983,7 +3983,7 @@ def drop( errors="raise", ): """ - Drop specified labels from rows or columns. + Drop specified labels from rows or columns and return a new DataFrame object. Remove rows or columns by specifying label names and corresponding axis, or by specifying directly index or column names. When using a @@ -4006,7 +4006,8 @@ def drop( level : int or level name, optional For MultiIndex, level from which the labels will be removed. inplace : bool, default False - If True, do operation inplace and return None. + If False, return a copy. Otherwise, do operation + inplace and return None. errors : {'ignore', 'raise'}, default 'raise' If 'ignore', suppress error and only existing labels are dropped. From 15bd288974e0007459990879f3ce656c4884dd73 Mon Sep 17 00:00:00 2001 From: Mar Date: Tue, 23 Jun 2020 14:05:20 -0300 Subject: [PATCH 2/3] DOC: Fix #33451 --- 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 7fc33eb92db5f..695400ffcc113 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4006,8 +4006,7 @@ def drop( level : int or level name, optional For MultiIndex, level from which the labels will be removed. inplace : bool, default False - If False, return a copy. Otherwise, do operation - inplace and return None. + If True, do operation inplace and return None. errors : {'ignore', 'raise'}, default 'raise' If 'ignore', suppress error and only existing labels are dropped. From 47753cf27a5efa13fb2d445c682747d5ec0a2dfb Mon Sep 17 00:00:00 2001 From: Mar Date: Tue, 23 Jun 2020 14:21:20 -0300 Subject: [PATCH 3/3] DOC: Fix #33451 --- pandas/core/frame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 695400ffcc113..990d295a0b6fe 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3983,7 +3983,7 @@ def drop( errors="raise", ): """ - Drop specified labels from rows or columns and return a new DataFrame object. + Drop specified labels from rows or columns. Remove rows or columns by specifying label names and corresponding axis, or by specifying directly index or column names. When using a @@ -4006,7 +4006,8 @@ def drop( level : int or level name, optional For MultiIndex, level from which the labels will be removed. inplace : bool, default False - If True, do operation inplace and return None. + If False, return a copy. Otherwise, do operation + inplace and return None. errors : {'ignore', 'raise'}, default 'raise' If 'ignore', suppress error and only existing labels are dropped.