def _ewma(v): result = tseries.ewma(v, com) first_index = _first_valid_index(v) result[first_index : first_index + min_periods] = NaN return result
def _ewma(arg, com): arg = _check_arg(arg) return tseries.ewma(arg, com)
def _ewma(v): result = tseries.ewma(v, com) first_index = _first_valid_index(v) result[first_index:first_index + min_periods] = NaN return result