numpy.argpartition()
numpy.argpartition
-
numpy.argpartition(a, kth, axis=-1, kind='introselect', order=None)
[source] -
Perform an indirect partition along the given axis using the algorithm specified by the
kind
keyword. It returns an array of indices of the same shape asa
that index data along the given axis in partitioned order.New in version 1.8.0.
Parameters: a : array_li