Skip to main content

RowOp

Row-altering steps.

Usage

Source

RowOp(
    id,
    default_id,
    *,
    keep_original_cols=None,
    output_role=None,
)

transform() is a no-op on new data: these steps only take effect during fit() (e.g. filtering or shuffling training rows). The behaviour is structural: because the framework dispatches on type, a RowOp can never accidentally run at transform time.

The mode follows from the base class, so a RowOp subclass does not declare one.