Week 13 — Pandas Group By and Sum two columns

Stephen Karahalias
2 min readJun 13, 2017

--

My plan in approaching my data set was to first find the sum of all crimes in each area in one month first to get a grasp of the basics and what to do. So after completing this I wanted to do the exact same thing but instead of one month, I wanted the year. So down below is the code I needed in order to fulfill this.

As a result, I was then able to sort the values and go from there in my project

--

--