pandas check groups of gorups by code example Example: list out the groups from groupby g = x.groupby('Color') g.groups.keys()