replacing all nan vales of a column with mean of that column code example Example: fill missing values in column pandas with mean df.fillna(df.mean(), inplace=True)