1>>> df = pd.DataFrame({'Animal': ['Falcon', 'Falcon',
2... 'Parrot', 'Parrot'],
3... 'Max Speed': [380., 370., 24., 26.]})
4>>> df
5 Animal Max Speed
60 Falcon 380.0
71 Falcon 370.0
82 Parrot 24.0
93 Parrot 26.0
10>>> df.groupby(['Animal']).mean()
11 Max Speed
12Animal
13Falcon 375.0
14Parrot 25.0
15