📜  在python代码示例中查找列中缺失值的百分比

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

代码示例1
features_with_na=[features for features in dataset.columns if dataset[features].isnull().sum()>0]
for feature in features_with_na:
  print(feature, np.round(dataset[feature].isnull().mean(),4), ' %missing values')