iode.Variables.periods_as_float
- Variables.periods_as_float
periods_as_float: List[float]
Return the list of periods as float from the current Variables sample.
- Returns:
- list(str)
Examples
>>> from iode import SAMPLE_DATA_DIR >>> from iode import variables >>> variables.load(f"{SAMPLE_DATA_DIR}/fun.var") >>> variables.sample '1960Y1:2015Y1' >>> variables.periods_as_float [1960.0, 1961.0, ..., 2014.0, 2015.0]