I have this DataFrame and want only the records whose EPS column is not NaN:
DataFrame
EPS
NaN
>>> df STK_ID
Don't drop, just take the rows where EPS is not NA:
df = df[df['EPS'].notna()]