create dict from pandas groupby code example
Example 1: convert pandas group to dict
res = dict(tuple(d.groupby('a')))
Example 2: dict from group pandas
dict(tuple(df.groupby('a')))
res = dict(tuple(d.groupby('a')))
dict(tuple(df.groupby('a')))