filter the column for nan values pandas code example
Example 1: drop if nan in column pandas
df = df[df['EPS'].notna()]
Example 2: pandas nan values in column
df['your column name'].isnull()
df = df[df['EPS'].notna()]
df['your column name'].isnull()