method
ndarray.
argpartition
Returns the indices that would partition this array.
Refer to numpy.argpartition for full documentation.
numpy.argpartition
New in version 1.8.0.
See also
equivalent function