This is documentation for an old release of SciPy (version 0.11.0). Read this page in the documentation of the latest stable release (version 1.14.1).

scipy.sparse.csr_matrix.ndim

csr_matrix.ndim = 2

Previous topic

scipy.sparse.csr_matrix.shape

Next topic

scipy.sparse.csr_matrix.nnz