(nfinite, minp, result)
return result / nfinite
Get result mean taking into account min periods.
Get result mean taking into account min periods.
Get result mean taking into account min periods .
def mean_result_or_nan(nfinite, minp, result):
    """Get result mean taking into account min periods."""
    if nfinite == 0 or nfinite < minp:
        return numpy.nan

    return result / nfinite
def mean_result_or_nan ( nfinite , minp , result ) : if nfinite == 0 or nfinite < minp : return numpy . nan return result / nfinite