big_dict = {}
for k in dicts[0]:
big_dict[k] = [d[k] for d in dicts]
Or, with a dict comprehension:
{k: [d[k] for d in dicts] for k in dicts[0]}
More Related Contents:
- how do I make two dictionary keys with value as list [closed]
- open .txt file and place every word within a dictionary [closed]
- Remap values in pandas column with a dict, preserve NaNs
- What is the best way to implement nested dictionaries?
- How does collections.defaultdict work?
- Filter dict to contain only certain keys?
- When is del useful in Python?
- How do I write a Python dictionary to a csv file? [duplicate]
- merging several python dictionaries
- How to convert a dataframe to a dictionary
- How to save a dictionary to a file?
- How to check if a value exists in a dictionary?
- How to get the difference between two dictionaries in Python?
- How can I access the nested data in this complex JSON, which includes another JSON document as one of the strings?
- How to get rid of double backslash in python windows file path string? [duplicate]
- How do I combine two lists into a dictionary in Python? [duplicate]
- Converting list of tuples into a dictionary
- How to reverse a dictionary that has repeated values
- How do I serialize a Python dictionary into a string, and then back to a dictionary?
- Get all keys of a nested dictionary [duplicate]
- How to create a dictionary of two pandas DataFrame columns
- Elegant way to remove fields from nested dictionaries
- Using a dict to translate numbers to letters in python
- How can I make a dictionary (dict) from separate lists of keys and values?
- Python: use mysqldb to import a MySQL table as a dictionary?
- Is self.__dict__.update(**kwargs) good or poor style?
- How can I avoid “RuntimeError: dictionary changed size during iteration” error?
- Why updating “shallow” copy dictionary doesn’t update “original” dictionary? [duplicate]
- dataframe to dict such that one column is the key and the other is the value [duplicate]
- Python dictionary comprehension using locals() gives KeyError