larray.AxisCollection.size

property AxisCollection.size: int

Return the size of the collection, i.e. the number of elements of the array.

Returns
int

Number of elements of the array.

Examples

>>> age = Axis(range(20), 'age')
>>> sex = Axis('sex=M,F')
>>> time = Axis([2007, 2008, 2009, 2010], 'time')
>>> AxisCollection([age, sex, time]).size
160