For example I have this table
| ID | VALUE |
| -------- | -------------- |
| 1 | row24 |
| 2 | row24 |
| 3 | row1 |
| 4 | row15 |
| 5 | row16 |
| 6 | row17 |
| 8 | row24 |
| 7 | row17 |
| 9 | row19 |
Output should be:
| ID | VALUE |
| -------- | -------------- |
| [1,2,8] | row24 |
| 3 | row1 |
| 4 | row15 |
| 5 | row16 |
| [6,7] | row17 |
| 9 | row19 |
I think maybe groupby in pandas is a solution, i tried some but it didnt work...