데이터를 살펴 볼 때 유용하다. for col in df_train.columns: msg = 'column : {:>10}\t Percent of NaN value : {:.2f}%'.format(col, 100*(df_train[col].isnull().sum()/df_train[col].shape[0])) print(msg) df_train 에서 col을 하나씩 뽑는다. df_train[col].isnull() 하면 Null 인지 아닌지 True 와 False로 하나씩 뽑는다. 합치면 True의 갯수만 나온다. (True면 Null) df_train[col].shap[0] 하면 전체 행의 갯수를 알려준다. ( df_train[col].isnull().sum() / df_train[col].shape..