From 419ac5ccdf3900352d5ae06f1b51216789fcdc31 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 27 Nov 2018 14:30:38 +0100 Subject: [PATCH] DOC: fix double Returns section in set_index docstring --- pandas/core/frame.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9481689d4099a..6a3c69c2965a5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3971,10 +3971,6 @@ def set_index(self, keys, drop=True, append=False, inplace=False, DataFrame.reindex : Change to new indices or expand indices. DataFrame.reindex_like : Change to same indices as other DataFrame. - Returns - ------- - DataFrame - Examples -------- >>> df = pd.DataFrame({'month': [1, 4, 7, 10],