I am working with collections.Counter()
counters. I would like to combine two of them in a meaningful manner.
Suppose I have 2 counters, say,
Counter({'menu': 20, 'good': 15, 'happy': 10, 'bar': 5})
and
Counter({'menu': 1, 'good': 1, 'bar': 3})
I am trying to end up with:
Counter({'menu': 21, 'good': 16, 'happy': 10,'bar': 8})
How can I do this?