import io

import pandas as pd

csv = '''
breed,group,price,longevity,size
Labrador Retriever,sporting,810.0,12.04,medium
German Shepherd,herding,820.0,9.73,large
Beagle,hound,288.0,12.3,small
'''

dogs = pd.read_csv(io.StringIO(csv))

# tests for manually input groups
dogs.groupby(['sam', 'sam', 'pg'])[['price', 'longevity']].mean()
