Skip to content

Commit

Permalink
Update src/transforms/rename.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm authored Nov 23, 2021
1 parent 6787a01 commit b72f999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transforms/rename.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b72f999

Please sign in to comment.