scipy.sparse.csr_matrix.diagonal
scipy.sparse.csr_matrix.eliminate_zeros
Enter search terms or a module, class or function name.