Convertir le groupe Pandas en dict
res = dict(tuple(d.groupby('a')))
Magnificent Moth
res = dict(tuple(d.groupby('a')))