COO.to_scipy_sparse
- COO.to_scipy_sparse()[source]
Converts this
COOobject 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.tocsrConvert to a
scipy.sparse.csr_matrix.COO.tocscConvert to a
scipy.sparse.csc_matrix.