I have a csv file which has data in this format. Here i want to group by elements using 2 column values.
col1 col2 col3
abc 001 mango
abc 001 apple
abc 001 orange
abc 002 potato
xyz 003 cabbage
xyz 003 peas
xyz 004 ladyfinger
I want the output in this format
col1 col2 col3
abc 001 [mango,apple,orange]
abc 002 [potato]
xyz 003 [cabbage,peas]
xyz 004 [ladyfinger]
I want to group the values of col3 on basis of clo2 values.