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

scipy.sparse.coo_matrix.ndim

coo_matrix.ndim = 2

Previous topic

scipy.sparse.coo_matrix.shape

Next topic

scipy.sparse.coo_matrix.nnz

This Page