anndata.AnnData.X

property AnnData.X: Optional[Union[ndarray, spmatrix, ArrayView]]

Data matrix of shape n_obs × n_vars.

Return type

ndarray | spmatrix | ArrayView | NoneUnion[ndarray, spmatrix, ArrayView, None]