Python, Pandas : Return only those rows which have missing values
If you are looking for a quicker way to find the total number of missing rows in the dataframe, you can use this:
sum(df.isnull().values.any(axis=1))
While working in Pandas in Python...
I'm working with a dataset that contains some missing values, and I'd like to return a dataframe which contains only those rows which have missing data.  Is there a nice way to do this?
(My current method to do this is an inefficient "look to see what index isn't in the dataframe without the missing values, then make a df out of those indices.")