diff --git a/src/transforms/rename.jl b/src/transforms/rename.jl index 8a3ac00f..8a2b4b80 100644 --- a/src/transforms/rename.jl +++ b/src/transforms/rename.jl @@ -33,6 +33,7 @@ function _rename(names, table) # check if requested renames exist in the table @assert keys(names) ⊆ oldnames "invalid column names" + # use new names if necessary newnames = map(oldnames) do oldname oldname in keys(names) ? names[oldname] : oldname end