降序查看缺失值情况

#这里不展示数据集了,下面显示数据集缺失最多的10个

data.isnull().sum().sort_values(ascending=False).head(10)

LotFrontage 486
GarageYrBlt 159
MasVnrArea 23
BsmtHalfBath 2
BsmtFullBath 2
BsmtFinSF2 1
GarageCars 1
TotalBsmtSF 1
BsmtUnfSF 1
GarageArea 1
dtype: int64

猜你喜欢

转载自blog.csdn.net/starmoth/article/details/84502324