(nfinite, minp, result)
return result
Get result taking into account min periods.
Get result taking into account min periods.
Get result taking into account min periods .
def result_or_nan(nfinite, minp, result):
    """Get result taking into account min periods."""
    if nfinite < minp:
        return numpy.nan

    return result
def result_or_nan ( nfinite , minp , result ) : if nfinite < minp : return numpy . nan return result