Explode a list or String Series
Description
This means that every item is expanded to a new row.
Usage
<Expr>$explode()
Details
Categorical values are not supported.
Value
Expr
Examples
#> shape: (2, 2)
#> ┌─────┬───────────┐
#> │ x ┆ y │
#> │ --- ┆ --- │
#> │ str ┆ list[i32] │
#> ╞═════╪═══════════╡
#> │ abc ┆ [1, 2, 3] │
#> │ ab ┆ [3, 4, 5] │
#> └─────┴───────────┘
#> shape: (6, 1)
#> ┌─────┐
#> │ y │
#> │ --- │
#> │ i32 │
#> ╞═════╡
#> │ 1 │
#> │ 2 │
#> │ 3 │
#> │ 3 │
#> │ 4 │
#> │ 5 │
#> └─────┘