scipy.sparse.dok_matrix.items

dok_matrix.items()a set-like object providing a view on D’s items