how to drop a nan value in python pandas 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)]
df = df[df['EPS'].notna()]
x = x[~numpy.isnan(x)]