Search & Count
Functions that locate elements by position (argmin, argmax), compute order statistics (percentile, quantile), or count elements matching a condition.argmin
Return the index of the minimum value along an axis.
Returns:
number when no axis is specified, NDArray of indices when an axis is given.
argmax
Return the index of the maximum value along an axis.
Returns:
number when no axis is specified, NDArray of indices when an axis is given.
percentile
Compute the q-th percentile of the data along the specified axis.
Returns:
number for a single percentile over all axes, NDArray when computing multiple percentiles or along specific axes.
quantile
Compute the q-th quantile of the data along the specified axis. Equivalent topercentile but with q in the range [0, 1] instead of [0, 100].
Returns:
number for a single quantile over all axes, NDArray when computing multiple quantiles or along specific axes.
count_nonzero
Count the number of non-zero elements in the array.
Returns:
number when counting over all axes, NDArray when counting along specific axes.