This is the structure of my dataframe-
Key1 Key2 Value1 Value2
A Alpha 16 12345
B Beta 12 123
A Alpha 15 1456
A Beta 14 12345
I have to club Value 1 and Value 2 basis of unique combination of Key 1 and Key 2. I want my final table as follows:
Key1 Key2 Value1 Value2
A Alpha {16,15} {12345,1456}
B Beta {12} {123}
A Beta {14} {12345}
Kindly suggest a code. Thanks much appreciated. Coding level- 8 days old.