From bf1a2a0d76a62f45a8264fe9d6a9a7994403afb4 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sat, 1 Aug 2015 21:39:48 +0100 Subject: [PATCH] Clarify in docstring that Series.sort_index() creates a new instance (rather than sorting in-place). --- pandas/core/series.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index 506aa1a6eb51e..3c4ccb131ffff 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1582,7 +1582,8 @@ def update(self, other): def sort_index(self, ascending=True): """ - Sort object by labels (along an axis) + Sort object by labels (along an axis). Creates a new instance (i.e. + does not sort in-place). Parameters ----------