pandas filter columns that contain nan code example Example: select non nan values python df[~np.isnan(df)]