Skip to main content

Lineage.removed

Archived nodes of the columns that steps have removed.

Lineage.removed: list[ColumnNode]

In removal order. Each node has removed_by set to the id of the step that dropped it. These are the intermediates that parents and ancestors trace through; a column dropped and later re-created under the same name appears here once per removal.

Examples

recipe = Recipe(target="Status").add(StepDummy(s.nominal_features()))
fitted = recipe.fit(credit)
lineage = fitted.lineage

Each removed node records which step dropped it:

[(node.name, node.removed_by) for node in lineage.removed]
[('Home', 'dummy'),
 ('Marital', 'dummy'),
 ('Records', 'dummy'),
 ('Job', 'dummy')]