SciPy

scipy.sparse.dok_matrix.tocsc

dok_matrix.tocsc()[source]

Return a copy of this matrix in Compressed Sparse Column format