scipy.sparse.csc_matrix.ndim

csc_matrix.ndim = 2

Previous topic

scipy.sparse.csc_matrix.shape

Next topic

scipy.sparse.csc_matrix.nnz