scipy.sparse.dok_array.

scipy.sparse.dok_array.ndim

property dok_array.ndim