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