Question: Write a MapReduce program in Python 3 (hw1-mapper.py and hw1-reducer.py) that will answer the following based on New York City Crime Data 2016. Run the

Write a MapReduce program in Python 3 (hw1-mapper.py and hw1-reducer.py) that will answer the following based on New York City Crime Data 2016. Run the program with only one reduce task.

a) Where is most of the crime happening in New York? (e.g BRONX, QUEENS, BROOKLYN, etc.)

b) What is the total number of crimes reported in that location ?

c) What types of crime are happening in that location (show unique crime types) ?

d) How many crimes of type DANGEROUS WEAPONS were reported on each month of the year 2016 ?

Sample Output:

Most of the crimes were reported in XYZ.

Total number of crimes reported in XYZ is .

Crime types reported in XYZ are .

DANGEROUS WEAPONS reported per month:

January ###

February ###

..

..

December ###

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!