I have seen similar questions but what I am facing is slightly different. I am trying to select a subset of the columns in my dataframe, based on whether the columns have less than 300 nulls.
df[df.columns[df.isnull().any()]].isnull().sum()<300
I have succeeded at creating this boolean array, but how would I pass this info back to select only df columns where this is True?