Skip to content

mecfs_bio.build_system.task.pipes.unnest_pipe

Classes:

UNNestPipe

Bases: DataProcessingPipe

Methods:

Attributes:

col_to_unnest instance-attribute

col_to_unnest: str

process

process(x: LazyFrame) -> narwhals.LazyFrame
Source code in mecfs_bio/build_system/task/pipes/unnest_pipe.py
def process(self, x: narwhals.LazyFrame) -> narwhals.LazyFrame:
    return x.explode(self.col_to_unnest)