# \#insertcols

**URL:** https://discourse.julialang.org/tag/insertcols/976.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Reshaping dataframe](https://discourse.julialang.org/t/reshaping-dataframe/78020)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 13\
**Last updated:** [March 17, 2022, 2:52pm UTC](https://discourse.julialang.org/t/reshaping-dataframe/78020 "2022-03-17T14:52:34Z")

</div>

I show a way to transform the starting table to have only one “X” per row. I ask for comments on how to do the various steps differently and / or better. For example how to insert an “index” column or how to filter the…
