scipy.sparse.coo_matrix.ndim

coo_matrix.ndim = 2

Previous topic

scipy.sparse.coo_matrix.shape

Next topic

scipy.sparse.coo_matrix.nnz