Skip to main content

Calculate moving RMS with exponential averaging

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()))