You can use the collections.Counter
counter = collections.Counter()
for d in dict1:
counter.update(d)
Or, if you prefer oneliners:
functools.reduce(operator.add, map(collections.Counter, dict1))
Related Contents:
- How to sum all the values in a dictionary?
- Determine the type of an object?
- How can I make a dictionary from separate lists of keys and values?
- Reverse / invert a dictionary mapping
- Change the name of a key in dictionary
- Creating a new dictionary in Python
- When is del useful in Python?
- Check if a given key already exists in a dictionary and increment it
- Pandas DataFrame to List of Dictionaries
- How to “perfectly” override a dict?
- How do I format a string using a dictionary in python-3.x?
- I’m getting Key error in python
- How do I convert this list of dictionaries to a csv file?
- What is the best way to implement nested dictionaries?
- Pandas: sum DataFrame rows for given columns
- Multiple levels of ‘collection.defaultdict’ in Python
- Get total of Pandas column
- Loop through all nested dictionary values?
- How To Check If A Key in **kwargs Exists?
- [] and {} vs list() and dict(), which is better? [closed]
- How to sort objects by multiple keys?
- Why can’t I use a list as a dict key in python?
- Using python map and other functional tools
- Only add to a dict if a condition is met
- Will OrderedDict become redundant in Python 3.7?
- Modifying a Python dict while iterating over it
- Why is a class __dict__ a mappingproxy?
- In what case would I use a tuple as a dictionary key? [closed]
- Fast way to copy dictionary in Python
- Python – sum values in dictionary
- How to check if all values of a dictionary are 0
- python: iterate over dictionary sorted by key
- Applying a function to values in dict
- python dictionary sorting in descending order based on values
- Is the order of a Python dictionary guaranteed over iterations?
- Finding moving average from data points in Python
- Python sum, why not strings? [closed]
- How to extract dictionary single key-value pair in variables
- PySpark create new column with mapping from a dict
- How to reverse order of keys in python dict?
- PySpark – Sum a column in dataframe and return results as int
- psycopg2 insert python dictionary as json
- Finding a key recursively in a dictionary
- Python optparse Values Instance
- sort values and return list of keys from dict python [duplicate]
- Sorting a dictionary by value then key
- Is there a fast way to generate a dict of the alphabet in Python?
- Accessing Python dict values with the key start characters
- How do I test dictionary-equality with Python’s doctest-package?
- Python: Difference between kwargs.pop() and kwargs.get()