I have two dictionaries that I would like to merge into a combined one with the "values" added together (see below). The dictionaries are the results of "Summary Counts" of two different columns of data in a hosted feature layer. Here are the dictionaries:
d1 = {"A":10, "B":20, "C":30}
d2 = {"A":1, "B":14, "D":3, "E":5}
I would like to end up with something like:
d3 = {"A":11, "B":34, "C":30, "D":3, "E":3}
As you can see, the dictionary "keys" may not be the same between the two summaries every time. Ultimately, I want to use the combined summary (i.e., the data in"d3") in a Serial Chart in a Dashboard. I'm struggling with how to compare the two dictionaries and check for corresponding keys in each.