0

I have a pandas dataframe like this one

Value Role
A 1
A 2
A 4
B FD
B XF

I want to group Role by Value (I don't wanna use the groupby function)

Here are the results I am expecting

Value Role
A 1,2,4
B FD,XF

Can you help me please

NelsonGon
  • 13,015
  • 7
  • 27
  • 57

0 Answers0