iode.Variables.periods

Variables.periods

periods: List[str]

Return the list of periods 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       
['1960Y1', '1961Y1', ..., '2014Y1', '2015Y1']