Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 158 Bytes

drop_rows_with_nan.md

File metadata and controls

5 lines (5 loc) · 158 Bytes
df_new = df.dropna(thresh=19) # 19 is the number of columns in df
for i in df_new.columns:
    print(i, (df_new[i].isnull().sum())/len(df_new))