## Lineage.columns_from_source()


Live columns produced by the step with `id == step_id`.


Usage

``` python
Lineage.columns_from_source(step_id)
```


This is what the [has_source](Selectors.md#mlfeatures.Selectors.has_source) selector resolves to. A step's `id` is the one passed to it, or by default the step type's short name (`"dummy"` for [StepDummy](StepDummy.md#mlfeatures.StepDummy)); a second step of the same type in one recipe becomes `"dummy_2"`.


## Parameters


`step_id: str`  
The producing step's `id`, or `"original"` for the input columns that survive to the live lineage.


## Returns


`list of str`  
Matching column names in data frame order; empty if the step produced no live column or no step has that id.


## Examples

Select every column a step produced (the dummy indicators):


``` python
lineage.columns_from_source("dummy")
```


    ['Home_other',
     'Home_owner',
     'Home_parents',
     'Home_priv',
     'Home_rent',
     'Marital_married',
     'Marital_separated',
     'Marital_single',
     'Marital_widow',
     'Records_yes',
     'Job_freelance',
     'Job_others',
     'Job_partime']


`"original"` picks the inputs that survive to the output (the numerics and the target are still here; the categoricals were consumed by the dummy step):


``` python
lineage.columns_from_source("original")
```


    ['Status',
     'Seniority',
     'Time',
     'Age',
     'Expenses',
     'Income',
     'Assets',
     'Debt',
     'Amount',
     'Price']
