how to remove nan from dataframe in python code example Example: drop if nan in column pandas df = df[df['EPS'].notna()]