human
I am working on the file "Lectures/Week 5 - MapReduce - MRJob/MapReduce Intro.ipynb".
The first task is:
MapReduce using MRJOB
Find documentation for MRJOB at https://pythonhosted.org/mrjob/
A framework that allows you to do mapreduce jobs without HADOOP but will run the same jobs in an hadoop environment.
( DUMBO and Pydoop give you lower level access to HADOOP)
Before using it for the first time install this package using : <code> pip install mrjob </code> 
If that does not work use the alternatives in provided on https://pythonhosted.org/mrjob/guides/quickstart.html#installation
%%writefile myfile.py
write/save cell contents into myfile.py (use -a to append). Another alias: %%file myfile.py
%run myfile.py
run myfile.py and output results in the current cell
%load myfile.py
load "import" myfile.py into the current cell
Can you write Python program for it?
 Can you provide a Python program to find documentation for MRJOB at https://pythonhosted?
assistant
#Here is Python program to find documentation for MRJOB at https://pythonhosted.

! pip install mrjob

# %load code/MRWordFrequencyCount.py
# Do not run this cell it is just displaying the content of the code
from mrjob.job import MRJob

class MRWordFrequencyCount(MRJob):
    
    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()

%run -G code/MRWordFrequencyCount.py  ./.mrjob.conf data/canterbury/alice29.txt