dataframe count nan by column code example
Example 1: drop if nan in column pandas
df = df[df['EPS'].notna()]
Example 2: find nan value in dataframe python
# to mark NaN column as True
df['your column name'].isnull()
df = df[df['EPS'].notna()]
# to mark NaN column as True
df['your column name'].isnull()