From b72f999cc869239666f84ba05d7a4a0e6f20d01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20Hoffimann?= Date: Tue, 23 Nov 2021 14:41:25 -0300 Subject: [PATCH] Update src/transforms/rename.jl --- src/transforms/rename.jl | 1 + 1 file changed, 1 insertion(+) 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