# How to rename several columns of Julia DataFrame?

**URL:** <https://discourse.julialang.org/t/how-to-rename-several-columns-of-julia-dataframe/92232>\
**Category:** New to Julia\
**Created:** [December 28, 2022, 3:52pm UTC](https://discourse.julialang.org/t/how-to-rename-several-columns-of-julia-dataframe/92232 "2022-12-28T15:52:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [December 28, 2022, 6:12pm UTC](https://discourse.julialang.org/t/how-to-rename-several-columns-of-julia-dataframe/92232/3 "2022-12-28T18:12:46Z")

</div>

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,

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

```

is enough

---

_[View the full topic](https://discourse.julialang.org/t/how-to-rename-several-columns-of-julia-dataframe/92232)._
