Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started