scipy.sparse
scipy.sparse.lil_matrix.shape
scipy.sparse.lil_matrix.asformat
lil_matrix.
nnz
Number of stored values, including explicit zeros.
See also
count_nonzero