This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / lib / _utils_impl / _median_nancheck

function

numpy.lib._utils_impl:_median_nancheck

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_utils_impl.py :650

Signature

def   _median_nancheck ( data result axis )

Summary

Utility function to check median result from data for NaN values at the end and return NaN in that case. Input result can also be a MaskedArray.

Parameters

data : array

Sorted input data to median function

result : Array or MaskedArray

Result of median function.

axis : int

Axis along which the median was computed.

Returns

result : scalar or ndarray

Median or NaN in axes which contained NaN in the input. If the input was an array, NaN will be inserted in-place. If a scalar, either the input itself or a scalar NaN.

Aliases

  • numpy.lib._utils_impl._median_nancheck