Skip to content

Instantly share code, notes, and snippets.

@AndreaCatalucci
Created February 26, 2014 11:07
Show Gist options
  • Save AndreaCatalucci/9227654 to your computer and use it in GitHub Desktop.
Save AndreaCatalucci/9227654 to your computer and use it in GitHub Desktop.
import sys
def mapper():
for line in sys.stdin:
data = line.strip().split("\t")
if len(line) != 6:
continue
date, time, store, item, cost, payment = data
print "{{0}\t{1}}".format(store, cost)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment