COO.to_scipy_sparse
- COO.to_scipy_sparse(*, accept_fv=None)[source]
Converts this
COOobject into ascipy.sparse.coo_matrix.- Parameters:
accept_fv (scalar or list of scalar, optional) – The list of accepted fill-values. The default accepts only zero.
- 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.