GCXS.to_scipy_sparse

GCXS.to_scipy_sparse()[source]

Converts this GCXS object into a scipy.sparse.csr_matrix or scipy.sparse.csc_matrix. :returns: The converted Scipy sparse matrix. :rtype: scipy.sparse.csr_matrix or scipy.sparse.csc_matrix

Raises
  • ValueError – If the array is not two-dimensional.

  • ValueError – If all the array doesn’t zero fill-values.