exlcude rows pandas columns is not nan code example Example: drop if nan in column pandas df = df[df['EPS'].notna()]