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