# ungroup

> For the complete documentation index, see [llms.txt](https://kotlin.github.io/dataframe/llms.txt).

Replaces [ColumnGroup](datacolumn.html#columngroup) with its nested columns.

API reference: [ungroup](https://kotlin.github.io/dataframe/api-docs/core/org.jetbrains.kotlinx.dataframe.api/ungroup.html)

```TEXT
ungroup { columns }
```

Reverse operation: [group](group.html)

See [column selectors](columnselectors.html) for how to select the columns for this operation.

```KOTLIN
// name.firstName -> firstName
// name.lastName -> lastName
df.ungroup { name }
```

[Embedded content](resources/org.jetbrains.kotlinx.dataframe.samples.api.Modify.ungroup.html)

