Container_forecast

数据预处理

  • 处理缺失值
1
2
3
4
5
6
def missingDataStat(data):
total=data.isnull().sum().sort_values(ascending=False)
percent=(data.isnull().sum()/data.isnull().count()).sort_values(ascending=False)
missing_data=pd.concat([total,percent],axis=1,keys=['Total','Percent'])
missing_data.head(20)
msno.matrix(data)
Encourage FPO