Ich bemerkte, Pandas hat jetzt support for Sparse Matrices and Arrays. Derzeit erstelle ich DataFrame()
s wie folgt aus:Füllen Sie einen Pandas SparseDataFrame aus einer SciPy Sparse Matrix
return DataFrame(matrix.toarray(), columns=features, index=observations)
Gibt es eine Möglichkeit, eine SparseDataFrame()
mit einem scipy.sparse.csc_matrix()
oder csr_matrix()
zu schaffen? Konvertieren in ein dichtes Format führt zu einem schlechten RAM-Verlust. Vielen Dank!
Es gibt jetzt eine experimentelle API: http://pandas-docs.github.io/pandas-docs-travis/sparse.html#interaction-with-scipy- spärlich –