
依靠列名对 DataFrame 中的某一列进行提取kk = np.arange(1, 13).reshape(3,4)kk=pd.DataFra...
可以用 string 模块导入一些内置 list>>> import string>>> kk=list(string.ascii_lowerc...
AnnData.varstore the metadata of genes (features) Data type:>>> type(sca...
AnnData.obsstore the metadata of cells (barcodes) Data type:>>> type(sca...
从 df 中删除一列并返回此列的数值df.pop('column_name')Note: .pop() 每次只能删除一列 示例一import p...
获得所有行组合的唯一值df.drop_duplicates() kk=pd.DataFrame({'aa':[1,1,2,2,3,3],'bb'...
查看 列名 和 行名kk=np.arange(1,13).reshape(3,4)kk=pd.DataFrame(kk)kk.columns=[...
依赖 array,创建新的全是空值的 DataFramekk = pd.DataFrame(index=range(3), columns=ra...
np.repeat()https://numpy.org/doc/stable/reference/generated/numpy.repeat...