anndata.abc.CSCDataset.__getitem__#
- abstract CSCDataset.__getitem__(index)[source]#
Load a slice or an element from the sparse dataset into memory.
- Parameters:
- index
slice
|int
|str
|int64
|ndarray
|Series
|EllipsisType
|tuple
[slice
|int
|str
|int64
|ndarray
|Series
,slice
|int
|str
|int64
|ndarray
|Series
|EllipsisType
] |tuple
[slice
|int
|str
|int64
|ndarray
|Series
|EllipsisType
,slice
|int
|str
|int64
|ndarray
|Series
] |tuple
[slice
|int
|str
|int64
|ndarray
|Series
,slice
|int
|str
|int64
|ndarray
|Series
,EllipsisType
] |tuple
[EllipsisType
,slice
|int
|str
|int64
|ndarray
|Series
,slice
|int
|str
|int64
|ndarray
|Series
] |tuple
[slice
|int
|str
|int64
|ndarray
|Series
,EllipsisType
,slice
|int
|str
|int64
|ndarray
|Series
] |spmatrix
|sparray
Index to load.
- index
- Return type:
float
|csr_matrix
|csc_matrix
|sparray
- Returns:
The desired data read off disk.