Skip to content

explode

Explode(features=None, *more_features)

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
23
24
25
26
27
28
29
def __init__(
    self,
    features: str | Sequence[str] | None = None,
    *more_features: str,
) -> None:
    self.features = features
    self.more_features = more_features