scipy.sparse.dok_array.

ndim#

property dok_array.ndim#