I have a nested list that is like this [[county, political party, votes received]] with the datatypes as string, string, and int.
How do I take a nested list and do summations by political party? I would like to have a table that compares all of the different political parties and has their total vote counts.
I know that I can just use a dict or pandas(group_by), but I would like to learn how to do this without them. I cannot find any questions that directly relate to this situation.