Skip to content

mecfs_bio.build_system.task.pipes.drop_col_pipe

Classes:

DropColPipe

Bases: DataProcessingPipe

Methods:

Attributes:

cols_to_drop instance-attribute

cols_to_drop: list[str]

process

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