rolling与
min_periods=1和
window=11和
sum:
In [142]:df['A'].rolling(min_periods=1, window=11).sum()Out[142]:0 NaN1 0.002 0.003 3.334 13.545 20.216 27.217 35.488 41.559 43.7210 47.1011 49.5812 51.6613 58.6114 55.2815 46.8216 46.8117 49.5018 47.9619 48.0920 48.9321 45.8722 43.91Name: A, dtype: float64
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)