I have this DataFrame and want only the records whose EPS column is not NaN:
DataFrame
EPS
NaN
>>> df STK_ID
Simple and easy way
df.dropna(subset=['EPS'],inplace=True)
source: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.dropna.html