Back to Numerical Arrays (NumPy)
np.argpartition
Returns the indices that would partition an array.
Syntax
np.argpartition(a, kth, axis?)
Description
Returns the indices that would partition an array.
Parameters
| Name | Description |
|---|---|
| a | - Array to partition |
| kth | - Index to partition around |
| axis(optional) | - Axis along which to partition (default: -1) |
Returns
Promise<NDArray>