How can I group csv by column a then column b and sum the values for each name?

The problem is i need to reach a value in terms of % foreach person and excludes some account_num so it will look like this. Then export the result to a xls or csv file.

The Desired Result