res.groupby(['customer_id'])['project_name'].apply(lambda x:', '.join(x)).reset_index()

x.groupby(['sa'])['daList'].apply(lambda x:np.concatenate(list(x))).reset_index()
Out[340]: 
   sa            daList
0   2            [2, 3]
1   3         [4, 5, 9]
2   5  [44, 55, 23, 45]
3   7              [66]
————————————————
原文链接:https://blog.csdn.net/u011012422/article/details/82773618

 

相关文章:

  • 2022-12-23
  • 2021-06-24
  • 2022-02-13
  • 2021-05-30
  • 2022-02-14
  • 2022-12-23
  • 2021-04-01
猜你喜欢
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-12-20
相关资源
相似解决方案