iode.Variables.nb_periods

Variables.nb_periods

nb_periods: int

Return the number of periods from the current Variables sample.

Returns:
int

Examples

>>> from iode import SAMPLE_DATA_DIR
>>> from iode import variables
>>> variables.load(f"{SAMPLE_DATA_DIR}/fun.var")
>>> variables.sample
'1960Y1:2015Y1'
>>> variables.nb_periods
56