From 2af9cbfd90e27d30ee6c2fb5121dadc3066bf5d1 Mon Sep 17 00:00:00 2001 From: benjamin Date: Fri, 18 Jan 2019 19:36:19 +0000 Subject: [PATCH 1/2] Updated docstring to highlight args only present for compatability with numpy. --- pandas/core/series.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index eb412add7bbbb..2e21d4642adde 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2993,10 +2993,13 @@ def argsort(self, axis=0, kind='quicksort', order=None): Parameters ---------- axis : int (can only be zero) + Has no effect but is accepted for compatibility with numpy. kind : {'mergesort', 'quicksort', 'heapsort'}, default 'quicksort' Choice of sorting algorithm. See np.sort for more information. 'mergesort' is the only stable algorithm - order : ignored + order : None + Must be None. Has no effect but is accepted for compatibility + with numpy. Returns ------- From f3afd5690cfd3f66d5f37b612314cfff90db1fea Mon Sep 17 00:00:00 2001 From: benjamin Date: Fri, 18 Jan 2019 20:07:23 +0000 Subject: [PATCH 2/2] Minor tweaks to remove irrelevant info. --- pandas/core/series.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index 2e21d4642adde..0c8e697c572e8 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2992,14 +2992,13 @@ def argsort(self, axis=0, kind='quicksort', order=None): Parameters ---------- - axis : int (can only be zero) + axis : int Has no effect but is accepted for compatibility with numpy. kind : {'mergesort', 'quicksort', 'heapsort'}, default 'quicksort' Choice of sorting algorithm. See np.sort for more information. 'mergesort' is the only stable algorithm order : None - Must be None. Has no effect but is accepted for compatibility - with numpy. + Has no effect but is accepted for compatibility with numpy. Returns -------