Consider a list of dicts
a = {(0,1) : 10, (2,9): 20}
b = {(0,1) : 20, (2,9): 60, (3,3): 15}
list_of_dicts = [a,b]
How can I obtain an average c
from this such that
c = {(0,1) : 15, (2,9): 40, (3,3):15}
A related question is Get average value from list of dictionary, but the solution doesn't account for key (3,3)
.