I have this list
result = [{"name": "A", "score": 35, "other_details": ""},
{"name": "A", "score": 60,"other_details": ""},
{"name": "B", "score": 45, "other_details": ""},
{"name": "B", "score": 34, "other_details": ""},
{"name":"C", "score": 65, "other_details": ""}]
Now, I want to get the whole dictionary on the basis of maximum score for each name.
My expected output is:
[{"name": "A", "score": 60,"other_details": ""}]
[{"name": "B", "score": 45, "other_details": ""}]
[{"name":"C", "score": 65, "other_details": ""}]