How to drop rows of Pandas DataFrame whose value in a certain column is NaN by Tarik Don’t drop, just take the rows where EPS is not NA: df = df[df['EPS'].notna()]