pandas filter na columns code example
Example 1: filter nulla values only pandas
#Python, pandas
#Obtain a dataframe df containing only the rows where "column1" is null (NaN)
df[df['column1'].isnull()]
Example 2: python select columns with no na
df = df[df.columns[~df.isnull().all()]]