pandas select rows with not nan code example
Example 1: python select columns with no na
df = df[df.columns[~df.isnull().all()]]
Example 2: select non nan values python
df[~np.isnan(df)]
df = df[df.columns[~df.isnull().all()]]
df[~np.isnan(df)]