SciPy
Section Navigation
csr_matrix.size
Number of stored values.
See also
count_nonzero
Number of non-zero values.