pandas dataframe from dict of groups code example Example: dict from group pandas dict(tuple(df.groupby('a')))