tsa.formula_components#
- mainsource.formula_components(name, expanded=False)#
Compute a mapping from series name (defined as formulas) to the names of the component series.
If expanded is true, it will expand the formula before computing the components. Hence only “ground” series (stored or autotrophic formulas) will show up in the leaves.
>>> tsa.formula_components('my-series') {'my-series': ['component-a', 'component-b']}
>>> tsa.formula_components('my-series-2', expanded=True) {'my-series-2': [{'sub-component-1': ['component-a', 'component-b']}, 'component-b']}
- Parameters:
name (str)
expanded (bool)
- Return type:
Dict[str, list] | None