iode.Variables.periods_as_float
- property Variables.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") Loading .../fun.var 394 objects loaded >>> variables.sample Sample("1960Y1:2015Y1") >>> variables.periods_as_float [1960.0, 1961.0, ..., 2014.0, 2015.0]