📜  在python代码示例中重新采样并替换为均值

📅  最后修改于: 2022-03-11 14:45:48.807000             🧑  作者: Mango

代码示例1
#Upsample and replace missing values with mean value
data = data.resample('D').asfreq()
data.fillna(data.mean())