# Pull DataFrames columns to the front

**URL:** <https://discourse.julialang.org/t/pull-dataframes-columns-to-the-front/60327>\
**Category:** General Usage\
**Tags:** dataframes\
**Created:** [April 30, 2021, 3:54pm UTC](https://discourse.julialang.org/t/pull-dataframes-columns-to-the-front/60327 "2021-04-30T15:54:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [April 30, 2021, 4:25pm UTC](https://discourse.julialang.org/t/pull-dataframes-columns-to-the-front/60327/4 "2021-04-30T16:25:34Z")

</div>

I find `select(df, cols, :)` quite readable. Similarly, to insert them at position 2 you can use `select(df, 1, cols, :)`. Or for position 3, `select(df, 1:2, cols, :)`.

---

_[View the full topic](https://discourse.julialang.org/t/pull-dataframes-columns-to-the-front/60327)._
