title: How to aggregate after fetching result using groupby using itertools
body: <p>I am having a list as </p>
  
  <pre><code>a=[{'name': 'xyz','inv_name':'asd','quant':300,'amt':20000, 'current':30000},{'name': 'xyz','inv_name':'asd','quant':200,'amt':2000,'current':3000}]
  </code></pre>
  
  <p>This list i have fetched using itertools groupby.</p>
  
  <p>I want to form a list after adding up the quant, amt and current filed for same name and inv_name and create a list something like : <code>[{'name':'xyz','inv_name':'asd','quant':500,'amt':22000,'current':33000}</code></p>
  
  <p>Any suggestions on how to achieve this?</p>