Full stack development to build an interactive dashboard exploring squirrels in Central Park New York.
Data used was from the 2018 Central Park Squirrel Census.
There were four key stages in developing the dashboards:
- Create a MongoDB database to hold the squirrel data
- Clean the data and perform exploratory analysis
- Create a flask api containing various routes holding the required data
- Create the interactive dashboard
Additional detail on each stage is provided below.
- A database was set up in MongoDBCompass, with the dataset imported with the code
mongoimport --type csv -d squirrels_db -c squirrels --headerline --drop 2018_Central_Park_Squirrel_Census_-_Squirrel_Data.csv
- Total number of documents loaded
- Pymongo was used to connect to the database to review the data and update fields.
- One notable aspect identified was five squirrels with duplicate ID's, each appearing twice. - On review data for each duplicate unique squirrel ID was the same, except for longitude and latitude values, which differed slightly. - As there was no way to verify the duplicate ID's the decision was made to keep them in the data, as there was not a clear reason to exclude them. Also as it was 5 records out of 3023, it was felt it would have minimal impact on the data.
- Numerous fields (such as primary fur color, age, location highlight fur colour) had missing data. This was updated with 'not_noted' in the database.
- The purpose of this was so that the dashboard could draw off data contained within the flask api.
- Four app routes were set up, each containing different aspects of data required for the dashboards.

- Below is an example of the information contained in the coordinates route, as different layers were being used in the heat map, this information was stored alongside the longitude and latitude data.

- Javascript was used to reference data contained in the flask api to display on a web page via html and css.
- Charts in the dashboard were designed to be interactive for users: - Select different layers on the heat map - Click on and off the bars on the radial charts - Select the time of day to display data on squirrel activity.
- Below is an image of the created webpage

Email: [email protected]
