From 9143b447e90d795bbaeea07edf27b1c488553d48 Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Fri, 19 May 2023 15:31:12 -0400 Subject: [PATCH] CLN: Make minor doc fixes to `pandas.DataFrame.drop` --- pandas/core/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e3c5f2facbe94..47355dea1c04f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5085,7 +5085,7 @@ def drop( 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 + axis, or by directly specifying index or column names. When using a multi-index, labels on different levels can be removed by specifying the level. See the :ref:`user guide ` for more information about the now unused levels. @@ -5108,7 +5108,7 @@ def drop( 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. + in place and return None. errors : {'ignore', 'raise'}, default 'raise' If 'ignore', suppress error and only existing labels are dropped.