Skip to main content

weighted_mean

Function weighted_mean 

Source
pub fn weighted_mean(
    a: &NdArrowArray,
    weights: &NdArrowArray,
    axes: Option<&[&str]>,
) -> Result<NdArrowArray>
Expand description

Weighted mean over axes, like xarray.DataArray.weighted(w).mean(). Weights of null values do not count. The result is floating point.