https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.ewm.html ewm is supposed to accept only one of com, span, halflife and alpha and throw a ValueError if multiple are submitted at once. However, when `times` is input as an argument, this check is bypassed.