Map a pandas list type column with a dictionary for two highest values

后端 未结 0 428
一向
一向 2021-02-05 15:39

I have a data frame like this,

 df
col1    col2
 A     [x,y]
 B     [z]
 C     [p,q,x,y]
 D     [q,z,t]

And I have a dictionary like this,

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