def average(self, projection=None):
        length = self.size()
        if projection:
            return sum(self.map(projection)) / length
        else:
            return sum(self) / length
Takes the average of elements in the sequence
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.average