Average by 2 steps moving window
.
import pandas as pd
data=[100, 200, 100, 100, 200, 100]
df = pd.DataFrame(data)
df.rolling(2).mean()
.
00 NaN
1 150.0
2 150.0
3 100.0
4 150.0
5 150.0
www.marearts.com
๐๐ป♂️
Average by 2 steps moving window
.
.
0
No comments:
Post a Comment