pandas.DataFrame.sparse.from_spmatrix¶
Create a new DataFrame from a scipy sparse matrix.
New in version 0.25.0.
- param data
- scipy.sparse.spmatrix
Must be convertible to csc format. index, columns : Index, optional Row and column labels to use for the resulting DataFrame. Defaults to a RangeIndex.
- return
DataFrame Each column of the DataFrame is stored as a
SparseArray
.
Warning
This feature is currently unsupported by Intel Scalable Dataframe Compiler