From f46a952b5fce479074575f1b61392ac8ab51b854 Mon Sep 17 00:00:00 2001 From: Jeremy Wagner Date: Tue, 26 Feb 2013 15:25:49 +0100 Subject: [PATCH] BUG: fixes handling of the 'kind' argument in Series.order (GH #2811) --- pandas/core/series.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index 317806b9de3b7..0495c666cc9a1 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -725,7 +725,7 @@ def __setitem__(self, key, value): raise IndexError(key) # Could not hash item except ValueError: - + # reassign a null value to iNaT if com.is_timedelta64_dtype(self.dtype): if isnull(value): @@ -2141,7 +2141,7 @@ def order(self, na_last=True, ascending=True, kind='mergesort'): def _try_mergesort(arr): # easier to ask forgiveness than permission try: - return arr.argsort(kind='mergesort') + return arr.argsort(kind=kind) except TypeError: # stable sort not available for object dtype return arr.argsort()