anndata.typing.Index#
- anndata.typing.Index = slice | int | str | numpy.int64 | numpy.ndarray | ellipsis | tuple[slice | int | str | numpy.int64 | numpy.ndarray, slice | int | str | numpy.int64 | numpy.ndarray | ellipsis] | tuple[slice | int | str | numpy.int64 | numpy.ndarray | ellipsis, slice | int | str | numpy.int64 | numpy.ndarray] | tuple[slice | int | str | numpy.int64 | numpy.ndarray, slice | int | str | numpy.int64 | numpy.ndarray, ellipsis] | tuple[ellipsis, slice | int | str | numpy.int64 | numpy.ndarray, slice | int | str | numpy.int64 | numpy.ndarray] | tuple[slice | int | str | numpy.int64 | numpy.ndarray, ellipsis, slice | int | str | numpy.int64 | numpy.ndarray] | scipy.sparse._matrix.spmatrix | scipy.sparse._base.sparray[source]#
1D or 2D index an
AnnData
object can be sliced with.