Skip to content

explode

Explode(features=None)

Bases: Transform

This wraps the explode method of Polars.

Reference: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.explode.html#polars.DataFrame.explode If features is None, all columns will be exploded.

Parameters:

Name Type Description Default
features list[str] | None

List of features to explode.

None
Source code in src/flowcean/polars/transforms/explode.py
22
23
def __init__(self, features: list[str] | None = None) -> None:
    self.features = features