def finalize(self):
        if self.count:
            self.average = self.sum / self.count
        else:
            self.average = None
dataset/ETHPy150Open Stiivi/brewery/brewery/nodes/record_nodes.py/Aggregate.finalize/original