ndim

property ArrayOfIndex.ndim

As for numpy.ndarray