I have this DataFrame and want only the records whose EPS column is not NaN:
DataFrame
EPS
NaN
>>> df STK_ID
You can use this:
df.dropna(subset=['EPS'], how='all', inplace=True)