def __eq__(self, other):
    return (isinstance(other, AggGroupBy) and (other.key == self.key) and (other.agg_ir == self.agg_ir))
def __eq__(self, other):
    return (isinstance(other, AggGroupBy) and (other.key == self.key) and (other.agg_ir == self.agg_ir))