Python Dict Setdefault List
newdata = {}
for k, v in DATA_SOURCE:
newdata.setdefault(k, []).append(v)
Rusty Gun
newdata = {}
for k, v in DATA_SOURCE:
newdata.setdefault(k, []).append(v)