xorbits.pandas.Series.argsort#
- Series.argsort(axis: Union[int, Literal['index', 'columns', 'rows']] = 0, kind: Literal['quicksort', 'mergesort', 'heapsort', 'stable'] = 'quicksort', order: None = None) pandas.core.series.Series[source]#
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.
- Parameters
axis ({0 or 'index'}) – Unused. Parameter needed for compatibility with DataFrame.
kind ({'mergesort', 'quicksort', 'heapsort', 'stable'}, default 'quicksort') – Choice of sorting algorithm. See
numpy.sort()for more information. ‘mergesort’ and ‘stable’ are the only stable algorithms.order (None) – Has no effect but is accepted for compatibility with numpy.
- Returns
Positions of values within the sort order with -1 indicating nan values.
- Return type
Series[np.intp]
See also
numpy.ndarray.argsortReturns the indices that would sort this array.
Warning
This method has not been implemented yet. Xorbits will try to execute it with pandas.
This docstring was copied from pandas.core.series.Series.