Here is my code
from pandas import DataFrame, Series import pandas as pd import numpy as np income = DataFrame({\'name\': [\'Adam\', \'Bill\', \'Chris\', \'Dave\
Just apply a lambda function on the groups like so:
grouped.apply(lambda x: x.max())