From 843e3609570f58c2cb235eb947424d7b272aa61f Mon Sep 17 00:00:00 2001 From: Purushothaman Srikanth <43005013+PurushothamanSrikanth@users.noreply.github.com> Date: Sun, 1 Nov 2020 12:00:47 +0530 Subject: [PATCH 1/2] Fixed the documentation for pandas.DataFrame.set_index inplace parameter Fixed the documentation for pandas.DataFrame.set_index inplace parameter. --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ba2f11c87369f..bced3b677101c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4525,7 +4525,7 @@ def set_index( append : bool, default False Whether to append columns to existing index. inplace : bool, default False - Modify the DataFrame in place (do not create a new object). + If set to True, modifies the DataFrame in place (do not create a new object). verify_integrity : bool, default False Check the new index for duplicates. Otherwise defer the check until necessary. Setting to False will improve the performance of this From a440a8ef29e36df33578687c416dc3dfb0697c7e Mon Sep 17 00:00:00 2001 From: Purushothaman Srikanth <43005013+PurushothamanSrikanth@users.noreply.github.com> Date: Fri, 13 Nov 2020 21:38:10 +0530 Subject: [PATCH 2/2] "set to" was removed to make it work fine. @jbrockmendel For your suggestion. Also Thanks to @pep8speaks @arw2019 --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bced3b677101c..a1c17c2ecfc32 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4525,7 +4525,7 @@ def set_index( append : bool, default False Whether to append columns to existing index. inplace : bool, default False - If set to True, modifies the DataFrame in place (do not create a new object). + If True, modifies the DataFrame in place (do not create a new object). verify_integrity : bool, default False Check the new index for duplicates. Otherwise defer the check until necessary. Setting to False will improve the performance of this