ndim

property array.ndim: int

Number of array dimensions (axes).

Returns:

out (int) – number of array dimensions (axes).