소스 검색

Change variable seller to category in Mint solution (#159)

cclauss 7 년 전
부모
커밋
ad40b8e649
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      solutions/system_design/mint/mint_mapreduce.py

+ 1 - 1
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