Equana

Back to Numerical Arrays (NumPy)

np.nanquantile

Compute the q-th quantile of the data along the specified axis,

Syntax

np.nanquantile(a, q, axis?, interpolation?, keepdims?)

Description

Compute the q-th quantile of the data along the specified axis, while ignoring NaN values.

Parameters

NameDescription
a- Input array
q- Quantile(s) to compute, in range [0, 1]
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>