I have tried searching this and the closest thing I came was using Panda packages, however is there is a way to accomplish this simple groupby
with only inbuilt modules
My example:
x = ['apples', 'cat', 'cherry' 'apples', 'cherry']
and when group, I want my end result to be:
y = ['apples', 'cat', 'cherry']