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