Scanpy Anndata From Dataframe, Read the documentation.