@property
    def groups(self):
        self._assure_grouper()
        return self.grouper.groups
dict {group name -> group labels}
dataset/ETHPy150Open pydata/pandas/pandas/core/groupby.py/_GroupBy.groups