Skip to content

mecfs_bio.build_system.task.pipes.cast_to_int32pipe

Classes:

CastIntsToInt32Pipe

Bases: DataProcessingPipe

Convert all int64 to int32

Methods:

process

process(x: LazyFrame) -> narwhals.LazyFrame
Source code in mecfs_bio/build_system/task/pipes/cast_to_int32pipe.py
def process(self, x: narwhals.LazyFrame) -> narwhals.LazyFrame:
    return x.with_columns(
        narwhals.selectors.by_dtype(narwhals.Int64).cast(narwhals.Int32)
    )