From ad40b8e649e0db50959b7f6714536f7cba6189fe Mon Sep 17 00:00:00 2001 From: cclauss Date: Wed, 23 May 2018 05:15:42 +0200 Subject: [PATCH] Change variable seller to category in Mint solution (#159) --- solutions/system_design/mint/mint_mapreduce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/system_design/mint/mint_mapreduce.py b/solutions/system_design/mint/mint_mapreduce.py index 3dc88558..e3554243 100644 --- a/solutions/system_design/mint/mint_mapreduce.py +++ b/solutions/system_design/mint/mint_mapreduce.py @@ -30,7 +30,7 @@ class SpendingByCategory(MRJob): (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