iode.Variables.nb_periods

property Variables.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")
Loading .../fun.var
394 objects loaded
>>> variables.sample
Sample("1960Y1:2015Y1")
>>> variables.nb_periods
56