I have a df as follows:
A B C
a b c1
a c c2
b a c3
a b c4
Now, basing on columns A and B I would like to get an output like this:
A B C
a b [c1, c4]
a c c2
b a c3
So, if there are the same values in columns A and B of the record, I want to merge the values in column C into one structure - array would be the best. How can I achieve such a thing? Thanks in advance