COO.to_scipy_sparse¶
-
COO.
to_scipy_sparse
()[source]¶ Converts this
COO
object into ascipy.sparse.coo_matrix
.- Returns
The converted Scipy sparse matrix.
- Return type
- Raises
ValueError – If the array is not two-dimensional.
ValueError – If all the array doesn’t zero fill-values.
See also
COO.tocsr()
Convert to a
scipy.sparse.csr_matrix
.COO.tocsc()
Convert to a
scipy.sparse.csc_matrix
.