SciPy

scipy.sparse.lil_matrix.tocsr

lil_matrix.tocsr()[source]

Return Compressed Sparse Row format arrays for this matrix.