how to select rows with non nan in pandas code example Example: select non nan values python df[~np.isnan(df)]