I am new to programming in Python. I have a large CSV file (~5k items). There are 2 columns that I need to get data counted. The best way to explain what I need is show you a few rows of the csv:
Name column OPTIONALDATA5 column
Collaborative Desk Broward
Collaborative Desk Broward
Academic Desk Broward
Academic Desk Broward
Academic Desk Broward
Academic Desk Broward
Collaborative Desk Broward
Collaborative Desk Broward
Collaborative Desk Broward
Collaborative Desk Broward
Broward Broward
Alachua Alachua
Collaborative Desk Alachua
Collaborative Desk Alachua
Collaborative Desk Alachua
Collaborative Desk Alachua
Collaborative Desk Alachua
In the above example I simply want the result as follows:
Broward:
collaborative Desk - 6
Academic Desk - 4
Broward - 1
Alachua:
collaborative Desk - 5
Alachua - 1
Maybe a total as well and then on to the next library in the spreadsheet.
I started writing code but I am wondering if there is a better way to do this.