I have a dataframe that looks like this:
id string value 1 a apple 2 2 a banana 5 3 b orange 1 4 b grape