# Why does transform default to ungroup=true?

**URL:** https://discourse.julialang.org/t/why-does-transform-default-to-ungroup-true/92544
**Category:** Data
**Created:** [January 5, 2023, 8:14am UTC](https://discourse.julialang.org/t/why-does-transform-default-to-ungroup-true/92544 "2023-01-05T08:14:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)
#### Post date: [January 5, 2023, 8:14am UTC](https://discourse.julialang.org/t/why-does-transform-default-to-ungroup-true/92544/1 "2023-01-05T08:14:40Z")

</div>

In DataFrames, why does `transform` default to `ungroup=true`?

---

<div class="post-metadata">

### Author: ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)
#### Post date: [January 5, 2023, 8:23am UTC](https://discourse.julialang.org/t/why-does-transform-default-to-ungroup-true/92544/2 "2023-01-05T08:23:11Z")

</div>

Because it was decided that this is what typically users will want by default. Also we wanted `combne`, `select` and `transform` to have the same defaults as otherwise the ecosystem would be harder to learn (and for `combine` you almost never want `ungroup=false`).

---

<div class="post-metadata">

### Author: ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)
#### Post date: [March 2, 2026, 10:54am UTC](https://discourse.julialang.org/t/why-does-transform-default-to-ungroup-true/92544/3 "2026-03-02T10:54:07Z")

</div>

so, the `ungroup` argument has disappeared completely? I’m kind of missing it for

```julia
groupby(:x)
subset(:y)
transform

```

the data on the last row are no longer grouped.
