📜  python 扩展运算符 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:58.333000             🧑  作者: Mango

代码示例2
#df = df[['gene_symbol', 'sample_id', 'fc']]
df = df.pivot(index='gene_symbol',columns='sample_id',values='fc')
print (df)
sample_id       S1     S2
gene_symbol              
a            100.0    1.3
b            100.0   14.0
c            112.0  125.0