drop rows with column having nan values pandas code example
Example 1: drop if nan in column pandas
df = df[df['EPS'].notna()]
Example 2: how to remove rows with nan in pandas
df.dropna(subset=[columns],inplace=True)
df = df[df['EPS'].notna()]
df.dropna(subset=[columns],inplace=True)