scipy.sparse.lil_matrix.ndim

lil_matrix.ndim = 2

Previous topic

scipy.sparse.lil_matrix.shape

Next topic

scipy.sparse.lil_matrix.nnz