COO.to_scipy_sparse

COO.to_scipy_sparse()[source]

Converts this COO object into a scipy.sparse.coo_matrix.

Returns:The converted Scipy sparse matrix.
Return type:scipy.sparse.coo_matrix
Raises:ValueError – If the array is not two-dimensional.