240 发简信
IP属地:宁夏
  • DataFrame: 分割 + 合并

    分割数据框df[df['column_name']==""]kk = pd.DataFrame({'aa': ['A', 'B', 'A', '...

  • Resize,w 360,h 240
    CellBender: 去除 RNA 污染

    1. PaperUnsupervised removal of systematic background noise from droplet...

  • DataFrame: 取一列

    依靠列名对 DataFrame 中的某一列进行提取kk = np.arange(1, 13).reshape(3,4)kk=pd.DataFra...

  • List: 内置 list

    可以用 string 模块导入一些内置 list>>> import string>>> kk=list(string.ascii_lowerc...

  • Scanpy: .var

    AnnData.varstore the metadata of genes (features) Data type:>>> type(sca...

  • Resize,w 360,h 240
    Scanpy: .obs

    AnnData.obsstore the metadata of cells (barcodes) Data type:>>> type(sca...

  • Resize,w 360,h 240
    DataFrame: 删除一列

    从 df 中删除一列并返回此列的数值df.pop('column_name')Note: .pop() 每次只能删除一列 示例一import p...

  • DataFrame: 获得唯一值

    获得所有行组合的唯一值df.drop_duplicates() kk=pd.DataFrame({'aa':[1,1,2,2,3,3],'bb'...

  • Resize,w 360,h 240
    DataFrame: 行名 + 列名

    查看 列名 和 行名kk=np.arange(1,13).reshape(3,4)kk=pd.DataFrame(kk)kk.columns=[...

个人介绍
Promote, enhance, inspire and illuminate scientific research.