delete nan values pandas and re arrange df code example Example: delete nans in df python df[~np.isnan(df)]