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