use np.where in pandas and fill with nan code example
Example 1: np where nan
np.argwhere(np.isnan(x))
Example 2: how to fill nan values with mean in pandas
df.fillna(df.mean())
np.argwhere(np.isnan(x))
df.fillna(df.mean())