# implode

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

Returns [DataFrame](dataframe.html) where values in given columns are merged into lists grouped by other columns.

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

```TEXT
implode(dropNA = false) [ { columns } ]
```

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

Parameters:

* `dropNA` — if `true`, `NA` values are removed from the merged lists of value columns. Has no effect on imploded column groups and frame columns.

Reverse operation: [explode](explode.html)

Imploded columns will change their types:

* `T` to `List<T>`

* [DataRow](datarow.html) to [DataFrame](dataframe.html)

Imploded [ColumnGroups](datacolumn.html#columngroup) will be converted into [FrameColumns](datacolumn.html#framecolumn)

```KOTLIN
df.implode { name and age and weight and isHappy }
```

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

