

def iterrowmap(source, rowmapper, header, failonerror):
    it = iter(source)
    hdr = next(it)
    flds = list(map(text_type, hdr))
    (yield tuple(header))
    it = (Record(row, flds) for row in it)
    for row in it:
        try:
            outrow = rowmapper(outrow)
            (yield tuple(outrow))
        except Exception as e:
            if failonerror:
                raise e

dataset/ETHPy150Open alimanfoo/petl/petl/transform/maps.py iterrowmap/VarMisuse@80/93 `row`->`outrow`