I have a DataFrame with this schema:
id user keywords
1 u1, u2 key1, key2
1 u3, u4 key3, key4
1 u5, u6 key5, key6
2 u7, u8 key7, key8
2 u9, u10 key9, key10
3 u11, u12 key11, key12
3 u13, u14 key13, key14
I need a method to group Rows by id and concatenate the strings in user and keywords columns, to make it look like this:
id user keywords
1 u1, u2, u3, u4, u5, u6 key1, key2, key3, key4, key5, key6
2 u7, u8, u9, u10 key7, key8, key9, key10
3 u11, u12, u13, u14 key11, key12, key13, key14
How do I do that in Java?