我要计算“ AGE”的滑动窗口平均值,该平均值是CSV文件或Parquet文件中的列之一。 滑动窗口的示例插图如下,
AGE =[12,31,17,15,44,33,19,21,25,26,70,12]
WINDOW SIZE = 3
WINDOWS =[ [12,31,17],[31,17,15],[17,15,44],
[15,44,33,19],....[26,70,12] ]
Avgs = Avg[12,31,17] , avg[31,17,15] .... avg[[26,70,12]]
预期的挑战: