I have a DataFrame df, composed of (age, height). I want to see how the mean of height changes with age, so I group df by age and try to form a new DataFrame new_df, composed of (age, mean_height), code goes below: