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: scipy.sparse.coo_matrix
Raises: ValueError
– If the array is not two-dimensional.See also
COO.tocsr()
- Convert to a
scipy.sparse.csr_matrix
. COO.tocsc()
- Convert to a
scipy.sparse.csc_matrix
.