I have a list of dictionaries. How can i group that list by valaues.
list = [{a:1},{b:2},{c:1},{d:3},{e:2}]
Now my result should be like below
1:a,c
2:b,e
3:d
I tried using groupby
from itertools
. But i couldn't get the required result. I am using python 2.7.
Could you help me achieve this?