(nfinite, minp, result, ddof)
return ddof_result(nfinite, minp, res, ddof)
Get result var taking into account min periods.
Get result var taking into account min periods.
Get result var taking into account min periods .
def var_result_or_nan(nfinite, minp, result, ddof):
    """Get result var taking into account min periods."""
    if nfinite < max(1, minp):
        return numpy.nan

    _sum, square_sum = result
    res = (square_sum - _sum * _sum / nfinite) / nfinite

    return ddof_result(nfinite, minp, res, ddof)
def var_result_or_nan ( nfinite , minp , result , ddof ) : if nfinite < max ( 1 , minp ) : return numpy . nan _sum , square_sum = result res = ( square_sum - _sum * _sum / nfinite ) / nfinite return ddof_result ( nfinite , minp , res , ddof )