I have a list of panda dataframe;
I would like to convert it into a panda dataframe that looks like this;
I tried something like panda_series.rolling(window=3).mean()
. However, the problem is that the moving average is calculated starting from the last row. What I want is to have the moving average to be calculated starting from the first row.