How to use column name as a variable?

后端 未结 0 682
感情败类
感情败类 2021-01-03 00:09

I have a dataframe as below.

d={
    \'id\' :[1,2,3,4,5],
    \'X1\':[25,12,3,7,1],
    \'X2\':[3,45,3,1,6],
    \'X3\':[6,23,9,3,2]
}

df=pd.DataFrame(d, col         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题