From e6aabc887b3cf7a77d8bdffdc4a296028baf93e9 Mon Sep 17 00:00:00 2001 From: Ali Asgar Date: Tue, 1 Aug 2023 13:31:44 +0530 Subject: [PATCH 1/2] doc: restructured return defination of df.drop() method --- 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 e4755d5dd2bdf..be8db216c04dd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5209,8 +5209,8 @@ def drop( Returns ------- DataFrame or None - DataFrame without the removed index or column labels or - None if ``inplace=True``. + Returns DataFrame or None DataFrame with the specified + index or column labels removed or None if inplace=True Raises ------ From 3fe559741b7f254e72e85aef8f195cd016206b7e Mon Sep 17 00:00:00 2001 From: Ali Asgar Date: Tue, 1 Aug 2023 14:22:15 +0530 Subject: [PATCH 2/2] removed trailing whitespace, added at the end --- 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 be8db216c04dd..f83467d42bc42 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5209,8 +5209,8 @@ def drop( Returns ------- DataFrame or None - Returns DataFrame or None DataFrame with the specified - index or column labels removed or None if inplace=True + Returns DataFrame or None DataFrame with the specified + index or column labels removed or None if inplace=True. Raises ------