I'm trying to understand the official example for mrjob clearly
def mapper(self, _, line):
yield "chars", len(line)
yield "words", len(line.split())
yield "lines", 1
def reducer(self, key, values):
yield key, sum(values)
if __name__ == '__main__':
MRWordFrequencyCount.run()
I can basically understand the thought of MapReduce.but,how does this sentence(yield "lines", 1) work? What's the meaning of "1" ?