If you are using Pandas DataFrame groupby[ use agg() ...

df.groupby(['Age'])['Height'].agg([('MaxValue','ma x'),('MinValue' ,'min')])