I have a big data. a column of text and a column of id.
column id
hello world 1
dinner 1
father 1
hi 1
work/related 2
summer 2
I want to pair words whose have the same id and followed each other
output:
new column
hello world ,dinner
dinner ,father
father, hi
work/related , summer