For certain columns of df, if 80% of the column is NAN.
df
NAN
What\'s the simplest code to drop such columns?
df.dropna(thresh=np.int((100-percent_NA_cols_required)*(len(df.columns)/100)),inplace=True)
Basically pd.dropna takes number(int) of non_na cols required if that row is to be removed.