## KeepOriginals


Whether a step's [keep_original_cols](Step.keep_original_cols.md#mlfeatures.Step.keep_original_cols) is fixed or up to the caller.


Usage

``` python
KeepOriginals
```


A step does not declare this: it follows from [Mode](Mode.md#mlfeatures.Mode), via [KeepOriginals.for_mode](KeepOriginals.for_mode.md#mlfeatures.KeepOriginals.for_mode). A step that turns its input columns into derived ones (`ONE_TO_MANY`, `MANY_TO_MANY`) is `CONFIGURABLE`, because keeping the sources beside the derived columns is a legitimate thing to want; every other mode has only one sensible answer, so `Step.__init__` fixes the value and [keep_original_cols](Step.keep_original_cols.md#mlfeatures.Step.keep_original_cols) cannot be set to anything else. The attribute is a read-only property on every step, configurable or not: its value is settled when the step is constructed.


## Examples


``` python
KeepOriginals.for_mode(StepDummy.mode), KeepOriginals.for_mode(Mode.ROW_OP)
```


    (<KeepOriginals.CONFIGURABLE: 'configurable'>, <KeepOriginals.KEEP: 'keep'>)
