You are given a DataFrame df with two columns: group (a categorical key) and value (a numeric column). Add a new column named group_avg that contains, for each row, the average of value computed over all rows sharing the same group. Return the resulting DataFrame with the original columns plus the new group_avg column, preserving the original row order.