pandas.api.extensions.ExtensionArray.argsort
-
ExtensionArray.argsort(ascending=True, kind='quicksort', *args, **kwargs)
[source] -
Return the indices that would sort this array.
Parameters: ascending : bool, default True
Whether the indices should result in an ascending or descending sort.
kind : {‘quicksort’, ‘mergesort’, ‘heapsort’}, optional
Sorting algorithm.
*args, **kwargs:
passed through to
numpy.argsort()
.Returns: index_array : ndarray
Array of indices that sort
self
.See also
-
numpy.argsort
- Sorting implementation used internally.
-
© 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.23.4/generated/pandas.api.extensions.ExtensionArray.argsort.html