iode.Variables.periods_as_str
- property Variables.periods_as_str: List[str]
Return the list of periods as string 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_str ['1960Y1', '1961Y1', ..., '2014Y1', '2015Y1']