implode
Returns DataFrame where values in given columns are merged into lists grouped by other columns.
API reference: implode
implode(dropNA = false) [ { columns } ]
See column selectors for how to select the columns for this operation.
Parameters:
dropNA— iftrue,NAvalues are removed from the merged lists of value columns. Has no effect on imploded column groups and frame columns.
Reverse operation: explode
Imploded columns will change their types:
Imploded ColumnGroups will be converted into FrameColumns
df.implode { name and age and weight and isHappy }
02 November 2026