Exercise 03 – Get top 3 crime types based on number of incidents in RESIDENCE area
Details – Duration 15 to 20 minutes Data is available in HDFS file system under /public/crime/csv Structure of data (ID,Case Number,Date,Block,lUCR,Primary Type,Description,Location Description,Arrest,Domestic,Beat,District,Ward,Community Area,FBl Code,X Coordinate,Y Coordinate,Year,Updated On,Latitude,Longitude,Location) File format – text file Delimiter – “,” (use regex while splitting split(“,(?=(?:[^\”]*\”[^\”]*\”)*[^\”]*$)”,-1) as there are some fields with comma and enclosed using double quotes. Get top …
Exercise 03 – Get top 3 crime types based on number of incidents in RESIDENCE area Read More »