Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find percentage of missing values in a column in python

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')
 
PREVIOUS NEXT
Tagged: #find #percentage #missing #values #column #python
ADD COMMENT
Topic
Name
4+8 =