Need help in pyton mapreduce using mrjob to count number of items

Viewed 21

im trying to run a mapper program to list a specific name item and how many item was made in each year. The "pair_list" object is a list of year, and item name(exp. ['2007', 240x240 box] , ['2009', 'Brokenwood Chardonnay'] ).

The result im expecting is something like:

2012   "Brokenwood Chardonnay"     23
2012   "Burgenham Beer"            12
2013   "Brokenwood Chardonnay"     80
2013   "300x300 container"         1023

enter image description here

0 Answers
Related