Explode (extract) items from column(s) of lists into separate rows.
unpack_list
instead.
Examples
ds.first_name
), datasets (ds
or ds[["first_name", "last_name"]]
) or models (referenced
by name e.g. "churn-clf"
).
Inputs
Outputs
step(..., {"param": "value", ...}) -> (output)
.
Parameters
null
, attempts to explode all columns
containing lists.Options
null
(default),
all non-exploded columns will be included. If a string, only that column will be included. If an array
of strings, only those columns will be included. Note that columns specified in explode_by
will always
be included regardless of this parameter.Options
true
, assumes all specified columns to be exploded are of the same lengths (in any
given row). In this case, if a row contains two lists with 5 elements each, this will
produce 5 rows with matching elements in the output dataset.If false
, on the other hand, will explode iteratively column-by-column. A row containing
two lists with 5 elements each, will therefore produce 25 rows in the output dataset. I.e.,
exploding the first column will produce 5 rows, and when these rows are exploded again
using the second column, each will produce 5 rows in turn.