DOK.
ndim
The number of dimensions in this array.
See also
COO.ndim
COO
numpy.ndarray.ndim
Examples
>>> s = DOK((1, 2, 3)) >>> s.ndim 3