COO.tocsr¶
-
COO.
tocsr
()[source]¶ Converts this array to a
scipy.sparse.csr_matrix
.Returns: The result of the conversion. Return type: scipy.sparse.csr_matrix Raises: ValueError
– If the array is not two-dimensional.See also
COO.tocsc()
- Convert to a
scipy.sparse.csc_matrix
. COO.to_scipy_sparse()
- Convert to a
scipy.sparse.coo_matrix
. scipy.sparse.coo_matrix.tocsr()
- Equivalent Scipy function.