The below shows two images of a tweets. The first column denotes tweet IDs and second denoted the dimension reduced form of their images. But the issue is that some tweets have more than 1 images which is denoted by more than values in the second column against same tweet ids. How to do this? is there a method for this?
[1]: https://i.stack.imgur.com/pOsaX.png -- This is the current dataframe
[2]: https://i.stack.imgur.com/W9j14.png -- I want this into this form