SciPy

scipy.sparse.dok_matrix.tocoo

dok_matrix.tocoo()[source]

Return a copy of this matrix in COOrdinate format