intent: Pandas: Fill missing values by mean in each group faster than transfrom
rewritten_intent: Replace NaN values in  column 'value' with the mean of data in column 'group' of dataframe `df`
snippet: df[['value']].fillna(df.groupby('group').transform('mean'))