I have the dataset like this:

ID Course
1 MS Word
1 MS Excel
2 Windows
2 DOS

I want to change it as following:

ID Course
1 MS Word, MS Excel
2 Windows, DOS