def apply_on_groups(self, delayedFcn):
    outDf = self._grouped_self.apply(delayedFcn)
    for grouped_name in outDf.index.names[:-1]:
      if outDf in grouped_name:
        outDf.reset_index(level=0, drop=True, inplace=True)
      else:
        outDf.reset_index(level=0, inplace=True)
    outDf.group_self(self._grouped_on)
    return outDf
dataset/ETHPy150Open dodger487/dplython/dplython/dplython.py/DplyFrame.apply_on_groups/swapped operands of `in`