Get a list of features which contain empty values (python/pandas)

Viewed 587

I am trying to clean a dataset and basically get rid of all the features which have a certain amount of empty values, in more than 100 empty values inclusive, with pandas/python. I am using the following command

train.isnull().sum()>=100 

which gets me:

Id False
Feature 1 False
Feature 2 False 
Feature 3 True
Feature 4 False
Feature 5 True

I would like to return a new dataframe without the features 3 and 4.

Thank you.

1 Answers
Related