Back to Numerical Arrays (NumPy)
np.nanmedian
Compute the median along the specified axis, while ignoring NaNs.
Syntax
np.nanmedian(a, axis?, keepdims?)
Description
Compute the median along the specified axis, while ignoring NaNs.
Parameters
| Name | Description |
|---|---|
| a | - Input array |
| axis(optional) | - Axis or axes along which the medians are computed (null = all elements) |
| keepdims(optional) | - If true, reduced axes are left with size one |
Returns
Promise<NDArray | number>