Series.
argsort
Return the integer indices that would sort the Series values.
Override ndarray.argsort. Argsorts the value, omitting NA/null values, and places the result in the same locations as the non-NA values.
Has no effect but is accepted for compatibility with numpy.
Choice of sorting algorithm. See np.sort for more information. ‘mergesort’ is the only stable algorithm.
Positions of values within the sort order with -1 indicating nan values.
See also
numpy.ndarray.argsort
Returns the indices that would sort this array.