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