Suppose I have a dataframe, which looks like this.
| Category | Text |
| :--------: | :--------------------: |
| First | I am Groot. |
| First | We are Groot. |
| Second | The Dark Knight Rises. |
| Second | I am Batman. |
But we want to combine rows in column Text, which happens to have same value in category column, into one row and make it look like this.
| Category | Text |
| -------- | ------------------------------------ |
| First | I am Groot. We are Groot. |
| Second | The Dark Knight Rises. I am Batman. |
How do I do that?