Skip to content

ShaunMoloi/ds_code_challenge

 
 

Repository files navigation

City Logo

Submission by Shaun Moloi for City of Cape Town - Data Science Challenge

Description

This repository contains code scripts for my submission for the Senior Professional Officer: Data Science role in the Organisational Performance Management Department. Code has primarily been written in Python, jupyter notebooks are also provided. The purpose of this challenge is to evaluate the skills of prospective Data Scientists, Engineers and Analysts for positions in the City of Cape Town's Data Science unit.

Challenge

1. Data Transformation

Joining the file city-hex-polygons-8.geojson to the service request dataset, such that each service request is assigned to a single H3 hexagon. For any requests where the Latitude and Longitude fields are empty, set the index value to 0.

2. Predictive Analytic Tasks

2.1 Time series challenge: Predicting the weekly number of expected service requests per hex for the next 4 weeks.
2.2 Introspection challenge: Predicting the number of requests per Notification per hex in the last 12 months and identifying the key drivers of these servce requests.

Running the files

1. Data Transformation

run '1_Timeseries_Challenge.ipynb'
Output:
'sr_hex_Failed_Merges.csv' contains logging of which records the records failed to join
'sr_hex_Shaun_Moloi.csv' contains the final joined city-hex-polygons-8.geojson to the service requests dataset

2 Time Series Challenge

2.1 Time series challenge: Time_Series_Challenge-Copy1.ipynb
2.2 Analysis: run 'Introspection_Challenfge_Analysis.ipynb'
Output Report: Time_Series_Analysis.html. Navigate to Correlations tab and Pearson's r for a visual display of the correllations.
Time series forecasting can be viewed in 'Introspection_Challenge.ipynb'

About

Code challenge for prospective City of Cape Town Data Science candidates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.9%
  • Python 0.1%