<human>:  Pandas: Fill missing values by mean in each group faster than transfrom
<bot>:.fillna(df.groupby('group').transform('mean'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.