How to remove entire row of missing values from a Data Frame in python?

ipython

#1

I have created a Data frame in Ipython notebook in which there are some missing value and I have used the function dropna for deleting the missing value from a Data frame while using it on a Data frame it deletes all the all rows in which at least one value is missing .I want to delete only those rows in which all the values of rows is missing .


#2

@sid100158,

Use below command, it will solve your issue.

data.dropna(how='all') #drop observations, if ALL columns have missing value

Regards,
Imran