GroupBy.
max
Compute max of group values.
Computed max of values within each group.
pandas.core.groupby.GroupBy.last
pandas.core.groupby.GroupBy.mean