Konversi kelompok panda menjadi dikte
res = dict(tuple(d.groupby('a')))
Magnificent Moth
res = dict(tuple(d.groupby('a')))