how to remove nan from dataframe in python while reading from file 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)]