Dict z grup grupowych

dict(tuple(df.groupby('a')))
Magnificent Moth