drop nan dataframe code example
Example 1: drop if nan in column pandas
df = df[df['EPS'].notna()]
Example 2: how to delete nan values in python
x = x[~numpy.isnan(x)]
Example 3: python remove nan rows
df = df[df['my_var'].notna()]
df = df[df['EPS'].notna()]
x = x[~numpy.isnan(x)]
df = df[df['my_var'].notna()]