How to I filter summed rows with a condition in a Pandas DataFrame?

I essentially want to display only those features in the dataset that have number of null values > 0.

The line of code:


Output is:

Id                  0
MSSubClass          0
MSZoning            0
LotFrontage       259
LotArea             0
Street              0
Alley            1369

I am unable to modify the code to show only the features where the values in more than 0 (or any other condition).

Thank you!

Read more here:

Content Attribution

This content was originally published by Anish at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: