r = result['用气量'].rolling(window=7)result['7day_mean']=r.mean()result['7day_sum']=r.sum()result['7day_0'] = r.count(0.0)