Skip to main content

Step.output_parents()

Map each column this step produces to its parent input column(s).

Usage

Source

Step.output_parents()

Known after fit(). The keys are exactly the columns this step adds to the data frame; each value lists the input columns that column descends from. The recipe consults this to populate the column-lineage DAG and validates the keys against the post-step data frame.

The default returns {}: correct for steps that create no new columns (in-place ONE_TO_ONE such as step_normalize; REMOVING; ROW_OP). Steps that add columns override this to declare per-output provenance: ONE_TO_MANY (each a1, a2 ← a), MANY_TO_MANY (every output ← the whole input set, as in step_pca and step_class_distance), and ADDING (step_intercept, whose column has no parents and so maps to []).