Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago