pandas.DataFrame.sparse.to_coo

Return the contents of the frame as a sparse SciPy COO matrix.

New in version 0.25.0.

return

coo_matrix : scipy.sparse.spmatrix If the caller is heterogeneous and contains booleans or objects, the result will be of dtype=object. See Notes.

Warning

This feature is currently unsupported by Intel Scalable Dataframe Compiler