filter nulla values only pandas
#Python, pandas #Obtain a dataframe df containing only the rows where "column1" is null (NaN) df[df['column1'].isnull()]
Here is what the above code is Doing:
1. df[‘column1’].isnull() returns a series of True/False values, where True indicates that the value in that row is null.
2. df[df[‘column1’].isnull()] returns a dataframe containing only the rows where the value in column1 is null.