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