Back to Numerical Arrays (NumPy)
np.nanpercentile
Compute the q-th percentile of the data along the specified axis,
Syntax
np.nanpercentile(a, q, axis?, interpolation?, keepdims?)
Description
Compute the q-th percentile of the data along the specified axis, while ignoring NaN values.
Parameters
| Name | Description |
|---|---|
| a | - Input array |
| q | - Percentile(s) to compute, in range [0, 100] |
| axis(optional) | - Axis along which to compute (null = all elements) |
| interpolation(optional) | - Interpolation method ('linear', 'lower', 'higher', 'midpoint', 'nearest') |
| keepdims(optional) | - If true, reduced axes are left with size one |
Returns
Promise<NDArray | number>