scipy.sparse.dok_matrix.

scipy.sparse.dok_matrix.ndim#

свойство dok_matrix.ndim#