Replicate each row in pandas dataframe and change values of some columns based on a list

后端 未结 0 613
遇见更好的自我
遇见更好的自我 2020-12-03 12:23

Suppose I have a pandas dataframe like this:

     my_id    val_a_b    val_a    val_c
0     id_1    rat|white   rat      1
1     id_2    dog|brown   dog      0         


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