Skip to content

Commit

Permalink
Change variable seller to category in Mint solution (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and donnemartin committed May 23, 2018
1 parent a360483 commit ad40b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/system_design/mint/mint_mapreduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def mapper(self, _, line):
(2016-01, shopping), 100
(2016-01, gas), 50
"""
timestamp, seller, amount = line.split('\t')
timestamp, category, amount = line.split('\t')
period = self. extract_year_month(timestamp)
if period == self.current_year_month():
yield (period, category), amount
Expand Down

0 comments on commit ad40b8e

Please sign in to comment.