Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have an SQL database I am using within a Jupyter notebook. The database is called crimes and has these fields: Index([ 'id' , 'caseno'

I have an SQL database I am using within a Jupyter notebook. The database is called "crimes" and has these fields:

Index(['id', 'caseno', 'date_of_occurrence', 'block', 'iucr', 'primary_type', 'description', 'location_description', 'arrest', 'domestic', 'beat', 'district', 'ward', 'community_area', 'fbi_cd', 'xcoordinate', 'ycoordinate', 'year', 'updated_on', 'latitude', 'longitude', 'location', 'where_is'], dtype='object') 

I am looking to execute a query that will create a table where, for each district, I select all blocks that have the highest number of gun crimes within that district

  • Locate theBlockthat has thehighest number of gun crimes. The popup on Choropleth map shall display the Block in every district along with the total number of gun crimes for that block

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions