Sidetable GitHub

df.groupby(['sex', 'class']).agg({'fare': ['sum']}).stb.subtotal()
Nice Nightingale