Konwertuj grupę pandy na delikt
res = dict(tuple(d.groupby('a')))
Magnificent Moth
res = dict(tuple(d.groupby('a')))