Commit cc480586 authored by Arash Rouhani's avatar Arash Rouhani Committed by Donne Martin
Browse files

Fix reducer argument in pastebin exercise (#85)

parent 17e5fb7d
...@@ -218,7 +218,7 @@ class HitCounts(MRJob): ...@@ -218,7 +218,7 @@ class HitCounts(MRJob):
period = self.extract_year_month(line) period = self.extract_year_month(line)
yield (period, url), 1 yield (period, url), 1
def reducer(self, key, value): def reducer(self, key, values):
"""Sum values for each key. """Sum values for each key.
(2016-01, url0), 2 (2016-01, url0), 2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment