I'm new to pyspark, not sure if there's an easy way to do this.
I have a df with people's interests for example:
| name | interest |
|---|---|
| A | gym |
| A | food |
| A | games |
| B | games |
from this df, I would like to create a new one like following:
| name | interests |
|---|---|
| A | gym;food;games |
| B | games |
Can someone help with this? Sorry in advance if i didn't explain clear enough of the question.