So I have a list of dictionary as follow:
a = [{'author':'John','country':'us','gender':'male'},
{'author':'Sean','country':'uk','gender':'male'},
{'author':'Sean','country':'russia','gender':'male'},
{'author':'Mike','country':'japan','gender':'male'}]
So now, only based on the author
I want to remove duplicates from this list of dictionary irrespective of other key values. Output should be as follow with entry no. 3 removed. (author
is repeated)
a = [{'author':'John','country':'us','gender':'male'},
{'author':'Sean','country':'uk','gender':'male'},
{'author':'Mike','country':'japan','gender':'male'}]
Please suggest the shortest way possible!