I have the following:
table = [['Country', 'Points'], ['Spain', '7'], ['Spain', '9'], ['Germany', '1'], ['Germany', '3']]
I want to do the mean of Spain (8) and Germany (2) and group them to:
table_result = [['Country', 'Points'], ['Spain', '8'], ['Germany', '2']]