implode
Returns DataFrame
where values in given columns are merged into lists grouped by other columns.
implode(dropNA = false) [ { columns } ]
Parameters:
dropNA
— iftrue
, removesNA
values from merged lists.
Reverse operation: explode
Imploded columns will change their types:
Imploded ColumnGroup
will convert into FrameColumn
df.implode { name and age and weight and isHappy }
Last modified: 27 September 2024