.series_generator
function: create_series_obj()
- create_series_obj(value, default_type=None) SeriesBase | IndicatorSeriesBase | None[source]
Create an instance descended from
SeriesBaseorIndicatorSeriesBase.- Parameters:
value – The input that should be de-serialized to a
SeriesBaseorIndicatorSeriesBaseinstance. Expected to be either aSeriesBaseorIndicatorSeriesBaseinstance, adict, or a JSONstr.default_type (
strorNone) – The default series type to apply if not specified invalue. Defaults toNone
- Returns:
A
SeriesBase(descendant) instance orIndicatorSeriesBase(descendant) instance- Return type:
SeriesBaseorIndicatorSeriesBaseorNone