SciPy

scipy.sparse.dok_matrix.tocsr

dok_matrix.tocsr()[source]

Return a copy of this matrix in Compressed Sparse Row format