def __iter__(self):
        counter = typecounter(self.table, self.field)
        yield ('type', 'count', 'frequency')
        counts = counter.most_common()
        total = sum(c[1] for c in counts)
        for c in counts:
            yield (c[0], c[1], float(c[1])/total)
dataset/ETHPy150Open alimanfoo/petl/petl/util/counting.py/TypeCountsView.__iter__/original