# How (best) to transform a huge DataFrame into wide-format

**URL:** <https://discourse.julialang.org/t/how-best-to-transform-a-huge-dataframe-into-wide-format/123415>\
**Category:** General Usage\
**Tags:** dataframes\
**Created:** [December 3, 2024, 2:14pm UTC](https://discourse.julialang.org/t/how-best-to-transform-a-huge-dataframe-into-wide-format/123415 "2024-12-03T14:14:34Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![rocco\_sprmnt21](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rocco_sprmnt21/32/20127_2.png) [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Post date:** [December 4, 2024, 10:14am UTC](https://discourse.julialang.org/t/how-best-to-transform-a-huge-dataframe-into-wide-format/123415/9 "2024-12-04T10:14:13Z")

</div>

> [@Dan](#):
>
> Combining `stack`, `unstack` and `select` can really do most of the pivoting wizardry from Excel and friends.

a similar approach (exactly reversed, in fact) [for another problem](https://discourse.julialang.org/t/create-dataframe-from-data-in-dataframerow/122431/3)

---

_[View the full topic](https://discourse.julialang.org/t/how-best-to-transform-a-huge-dataframe-into-wide-format/123415)._
