Skip to content

csr_to_scipy

Module: strata.core • Kind: function
Source: strata/core/interop.mojo

def csr_to_scipy[dtype: DType](csr: CSRMatrix[dtype]) -> PythonObject
from strata.core import csr_to_scipy

Converts a Strata CSRMatrix[dtype] to a scipy.sparse.csr_matrix.