scipy.sparse.dok_array.ndim#

dok_array.ndim = 2#