This should be straightforward, but the closest thing I\'ve found is this post: pandas: Filling missing values within a group, and I still can\'t solve my problem....
You can also use "dataframe or table_name".apply(lambda x: x.fillna(x.mean())).
"dataframe or table_name".apply(lambda x: x.fillna(x.mean()))