I have large dataframe of the following type:
Part Text
P1 a
P1 b
P2 c
P2 d
I want to transform this data into two formats
Expected output 1:
Part Text
P1 ['a','b']
P2 ['c','d']
Expected output 2:
Part Text
P1 ['ab']
P2 ['cd']
Can anyone help me with this