scipy.sparse.dok_matrix.

ndim#

property dok_matrix.ndim#