I have a list of dictionaries in python. For example
mylist = [
{'a': 'x', 'b':'y', 'c':'z'},
{'a':'e','b':'f','c':'g'},
{'a':'h','b':'i','c':'j'}
]
how can i map this into
mynewlist = [
{'a':'x'},
{'a','e'},
{'a':'h'}
]
And
mynewlist2 = [
{'a':'x','b':'y'},
{'a','e','b':'f'},
{'a':'h','b':'i'}
]