larray.Array.ndim

property Array.ndim: int

Return the number of dimensions of the array.

Returns
int

Number of dimensions of an Array.

Examples

>>> a = ndtest('nat=BE,FO;sex=M,F')
>>> a.ndim
2