I have a dataframe with some columns containing nan. I\'d like to drop those columns with certain number of nan. For example, in the following code, I\'d like to drop any co
I recommend the drop-method. This is an alternative solution:
drop
dff.drop(dff.loc[:,len(dff) - dff.isnull().sum() <2], axis=1)