def fieldmap(table, mappings=None, failonerror=False, errorvalue=None):

    return FieldMapView(table, mappings=mappings, failonerror=failonerror,
                        errorvalue=errorvalue)
Transform a table, mapping fields arbitrarily between input and output.
dataset/ETHPy150Open alimanfoo/petl/petl/transform/maps.py/fieldmap