larray.load_example_data

larray.load_example_data(name)[source]

Load arrays used in the tutorial so that all examples in it can be reproduced.

Parameters
namestr

Example data to load. Available example datasets are:

  • demography

Returns
Session

Session containing one or several arrays

Examples

>>> demo = load_example_data('demography')
>>> demo.pop.info # doctest: +SKIP
26 x 3 x 121 x 2 x 2
 time [26]: 1991 1992 1993 ... 2014 2015 2016
 geo [3]: 'BruCap' 'Fla' 'Wal'
 age [121]: 0 1 2 ... 118 119 120
 sex [2]: 'M' 'F'
 nat [2]: 'BE' 'FO'
>>> demo.qx.info # doctest: +SKIP
26 x 3 x 121 x 2 x 2
 time [26]: 1991 1992 1993 ... 2014 2015 2016
 geo [3]: 'BruCap' 'Fla' 'Wal'
 age [121]: 0 1 2 ... 118 119 120
 sex [2]: 'M' 'F'
 nat [2]: 'BE' 'FO'