Using the Bottleneck package, I'm able to do a backward-moving average of my data, but I'm unable to find how to do the forward moving average. The below code is for the backward moving average:
import bottleneck as bn
bn.move_mean(data, window=4, min_count=1)
Is there a way to do the forward moving average using the Bottleneck library?