how to fill nan values on rows pandas code example
Example 1: dataframe find nan rows
df[df.isnull().any(axis=1)]
Example 2: how to fill nan values with mean in pandas
df.fillna(df.mean())
df[df.isnull().any(axis=1)]
df.fillna(df.mean())