list out the groups from groupby code example Example: list out the groups from groupby g = x.groupby('Color') g.groups.keys()