# run this cell to avoid annoying warnings
import warnings
warnings.filterwarnings("ignore", message=r'.*numpy.dtype size changed*')
Import the LArray library:
from larray import *
Check the version of LArray:
from larray import __version__
__version__
Import a subset of the test array pop
:
# import a 6 x 2 x 2 subset of the 'pop' example array
pop = load_example_data('demography').pop[2016, 'BruCap', 90:95]
pop
Inline matplotlib:
%matplotlib inline
Create a plot (last axis define the different curves to draw):
pop.plot()
# plot total of both sex
pop.sum('sex').plot()