0
$\begingroup$

This is moving RMS, now how to add exponential averaging in this

df['signal'].rolling(21*24*60).apply(lambda x: np.sqrt(x.mean()))

$\endgroup$
0

1 Answer 1

1
$\begingroup$
n_d =  pd.DataFrame((data)**2)

np.sqrt(n_d.ewm(alpha = 1).mean()) 
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.