Commit ad40b8e6 authored by cclauss's avatar cclauss Committed by Donne Martin
Browse files

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

parent a3604834
......@@ -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
......
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