pandas if one column is shorter than another remove nan code example Example: drop if nan in column pandas df = df[df['EPS'].notna()]