[Solved] Python Combining Dictionary of A List having Same Characteristics
Not beautiful solution, but working one values = [{‘id’: 1, ‘x’: 2}, {‘id’: 1, ‘y’: 4}, {‘id’: 1, ‘z’: 6}, {‘id’: 2, ‘j’: 5}, {‘id’: 2, ‘k’: 10}, {‘id’: 3, ‘w’: 1}, {‘id’: 3, ‘x’: 3}, {‘id’: 3, ‘y’: 5}, {‘id’: 3, ‘z’: 7}] # get all unique possible keys unique_keys = set((x[‘id’] for x … Read more