How to rename several columns of Julia DataFrame?

If you want to change all the names you don’t actually have to map old to new or reference the old column names at all,

rename!(df, [:a, :b])

is enough

5 Likes