Python中list+dict的一个小问题，求大家帮忙解答
l1 = [
{"name": "aaa","value": 1},
{"name": "aaa","value": 1},
{"name": "bbb","value": 2},
{"name": "bbb","value": 1}
]
l2 = [
{"name": "aaa", "value": 2},
{"name": "bbb", "value": 3}
]
l1--->l2?
请教一个小问题，如何将列表l1中所有dict中name相同的value加起来，生成类似于l2的列表？
```
data = [
    {"name": "aaa", "value": 1},
    {"name": "aaa", "value": 1},
    {"name": "bbb", "value": 2},
    {"name": "bbb", "value": 1}
]

#第一种pandas
import pandas as pd

df = pd.DataFrame(data)
print df.groupby('name', as_index=False).sum().to_dict(orient='records')


#第二种groupby
from itertools import groupby
lst = []
for k, g in groupby(sorted(data), key=lambda x: x['name']):
    lst.append(dict(name=k, value=sum([_['value'] for _ in list(g)])))
print lst
```