On this page
pandas.Series.argsort
Series.argsort(self, axis=0, kind='quicksort', order=None)
[source]-
Override ndarray.argsort. Argsorts the value, omitting NA/null values, and places the result in the same locations as the non-NA values.
Parameters: -
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
-
Has no effect but is accepted for compatibility with numpy.
Returns: - Series
-
Positions of values within the sort order with -1 indicating nan values.
See also
-
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Series.argsort.html