I am using
scanpy
(and
scvi
) for my scRNAseq data analysis I added sample names under adata.obs (adata from different samples are concatenated). I would like to get unique name of every sample using the following command:
adata.obs.sample.unique().tolist()
but getting error and error message is “sample does not have unique function”. when I checked the functions of sample, I noticed that sample does not have any function. do you maybe know what the problem is?