larray.Array.shape

property Array.shape: Tuple[int, ...]

Return the shape of the array as a tuple.

Returns
tuple

Tuple representing the current shape.

Examples

>>> a = ndtest('nat=BE,FO;sex=M,F;type=type1,type2,type3')
>>> a.shape  
(2, 2, 3)