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