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
0
$\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, privacy policy and cookie policy

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