getting the columns of rows with missing values code example
Example 1: count missing values by column in pandas
df.isna().sum()
Example 2: number of columns with no missing values
df = df[df.columns[~df.isnull().all()]]
df.isna().sum()
df = df[df.columns[~df.isnull().all()]]