-
craftutils.wrap.dragons.Table.argsort(keys=
None, kind=None, reverse=False) Return the indices which would sort the table according to one or more key columns. This simply calls the numpy.argsort function on the table with the
orderparameter set tokeys.Parameters¶
- keysstr or list of str
The column name(s) to order the table by
- kind{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, optional
Sorting algorithm used by
numpy.argsort.- reversebool
Sort in reverse order (default=False)
Returns¶
- index_arrayndarray, int
Array of indices that sorts the table by the specified key column(s).