The visualization protocol requires specifying the dataset’s timeframe and source, along with links to the dataset and metadata describing its columns. Additionally, it mandates documenting the steps and scripts used to process the raw data. This ensures transparency and traceability of the visualization process.
Crimes in Boston
Crime incident reports are provided by Boston Police Department (BPD) to document the initial details surrounding an incident to which BPD officers respond. This is a dataset containing records from the new crime incident report system, which includes a reduced set of fields focused on capturing the type of incident as well as when and where it occurred.
From 2015 to 2018
link to the datasetThe protocol is a detailed description of the actions performed on the original dataset to transform it into a manageable format suitable for creating visualizations. Its purpose is to document the steps, parameters, and processes applied to prepare the data, ensuring it is clean, structured, and ready for effective analysis and representation.
Imported necessary libraries and loaded the crime.csv dataset on jupyter notebook.
The filtered dataset is exported and named as crime_cleaned.csv
Each visualization required specific data treatments and preprocessing steps. To streamline the process, we decided to use the same dataset as a base, applying column filters, feature engineering, and other preprocessing directly within Tableau. This approach ensured consistency while allowing flexibility to tailor the data for each specific visualization.
1. Create a calculate field where we obtain the average number of crimes in a day
2. Put the calculated field in the rows field
3. Put Hour in the columns
4. Change the type of chart to line chart
5. Go to Hour axis
6. Select Modify axis
7. Under Interval, select Personalize
8. Change the value -2 to 0 and the value 25 to 23
9. In Title, select Hide title
1. Grab and drag the Geometry of Police_District.geojson file on the empty table
2. Put District1 in the label indicators
3. Put Number of crimes of crime_cleaned.csv file in color indicators
4. Put the Ucr Part in Filters
5. Select Modify Filter
6. Select one of three main options (High, medium, low)
7. In color indicators, select modify color
8. Select one of the three color: red(high), orange(medium), low(yellow)
9. In Title, select Hide title
1. Put District of crime_cleaned.csv file in the columns field
2. Put the calculate field Number of crimes in the rows field
3. Put Ucr part in Filters
4. Select Modify Filter
5. Select only High, Medium, Low values
6. Grab and drag Ucr Part on color indicators
7. In color indicators, select modify colors
8. Select red(High), orange(medium), yellow(low)
9. In Title, select Hide title