I have a data frame:
+---------+---------------------+ | id| Name| +---------+---------------------+ | 1| 'Gary'| | 1| 'Danny'| | 2| 'Christopher'| | 2| 'Kevin'| +---------+---------------------+ I need to combine all the Name values in the id column. Please tell me how to get from it:
+---------+------------------------+ | id| Name| +---------+------------------------+ | 1| ['Gary', 'Danny']| | 2| ['Kevin','Christopher']| +---------+------------------------+