how to replace a ? in a column with mean of that column in python code example Example: fill missing values in column pandas with mean df.fillna(df.mean(), inplace=True)