def ewma(serie, look_back_delay):
    """Exponentially-weighted Moving Average"""

    return serie.ewm(
        span=int(look_back_delay),
        min_periods=int(look_back_delay) - 1,
        adjust=True,
        ignore_na=False
    ).mean()