python filter out rows with nan only on selected columns code example Example: select non nan values python df[~np.isnan(df)]