defaultdict
from collections import defaultdict
persons = [{"ID": 1001, "NAME": "YAMANE", "AGE": 31},
{"ID": 1001, "NAME": "SHIMADA", "AGE": 51},
{"ID": 1002, "NAME": "AMANE", "AGE": 13},
{"ID": 1003, "NAME": "OKADA", "AGE": 21}]
person_box = defaultdict(list)
for person in persons:
person_box[person['ID']].append(person)