Skip to content

mecfs_bio.build_system.task.pipes.select_pipe

Classes:

SelectColPipe

Bases: DataProcessingPipe

Methods:

Attributes:

cols_to_select instance-attribute

cols_to_select: list[str]

process

process(x: LazyFrame) -> narwhals.LazyFrame
Source code in mecfs_bio/build_system/task/pipes/select_pipe.py
def process(self, x: narwhals.LazyFrame) -> narwhals.LazyFrame:
    y = x.select(*self.cols_to_select)
    return y