anndata.abc.CSRDataset.to_memory

anndata.abc.CSRDataset.to_memory#

abstract CSRDataset.to_memory()[source]#

Load the sparse dataset into memory.

Return type:

csr_matrix | csc_matrix | sparray

Returns:

The in-memory representation of the sparse dataset.