Typo in `sales_rank` code example

pull/554/head
Nikita Sobolev 2021-08-06 20:06:09 +03:00 committed by GitHub
parent 4e70c54a5b
commit 4bf44904db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class SalesRanker(MRJob):
if self.within_past_week(timestamp): if self.within_past_week(timestamp):
yield (category_id, product_id), quantity yield (category_id, product_id), quantity
def reducer(self, key, value): def reducer(self, key, values):
"""Sum values for each key. """Sum values for each key.
(category1, product1), 2 (category1, product1), 2