def METHOD_NAME(data: Table, replacement: list):
    assert len(data.domain.attributes) == len(replacement)
    natts = [at.renamed(str(n)) for n, at in zip(replacement, data.domain.attributes)]
    ndom = Domain(natts, data.domain.class_vars, data.domain.metas)
    return data.transform(ndom)