Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

sihlendamane2-a11y/South-African-Crime-Data-Cleaning

Domain:

peace and security

Record type:

dataset
Creator:
sih
Host:
Python Data Cleaning Project Using SAPS 2024 Crime Stats # SA Crime Data Cleaning - Python/pandas ## Overview A data cleaning project using SAPS (South African Police Service) crime statistics 2024. The raw Excel data contains merged headers, inconsistent naming, and unnamed columns unsuitable for analysis. This project documents the full cleaning pipeline and produces a tidy dataset ready for dashboarding or modelling. ## Skills Demonstrated - Real-world messy data handling (merged cells, unnamed columns) - Dropping empty columns and standardising column names - Missing value strategy and documentation - Reproducible notebook structure with Markdown cells explaining each decision ## Tools Python 3 · pandas · matplotlib · Jupyter Notebook ## Data Source SAPS Crime Statistics 2024 - saps.gov.za (publicly available) ## Key Finding 1. Eastern Cape recorded the highest number of crime records in the dataset. 2. Several formatting issues in the raw SAPS Excel file prevented immediate analysis. 3. Cleaning the data required removing unnamed columns, standardising headers, and handling missing values. 4. The final dataset is analysis-ready and can be used for Power BI dashboards or further statistical analysis. ## Visualisation ### Crime Records by Province ## Recommendations 1. Eastern Cape resource allocation: Eastern Cape had the highest volume of crime records in the dataset. Government should prioritise SAPS resource allocation; personnel, vehicles and funding, to Eastern Cape stations particularly in high-density districts. 2. Data quality improvement: The raw SAPS dataset contained over 1,235 empty columns and inconsistent station naming. SAPS should invest in standardised data collection systems across all stations to enable faster and more reliable national reporting. 3. Population-adjusted reporting: Raw record counts favour larger provinces. Future SAPS publications should report crime rates per 100,000 people rather than absolute counts to allow fair provincial comparisons. 4. Station-level targeting: A c …

Visit

github.com

Tags

data-cleaningjupyter-notebookpandaspython

Similar

Aman-byte1/african-data-cleaning-pipelinePascalBenstrong/Crime-Data-South-AfricaYoussef-Mohamed1/African-Agricultural-Data-Cleaning-And-Testing-Projectshawnsibanda/South-Africa-Crime-Data-Analysiselvisthedataevang/data-cleaning-workshopCrime and Consequences: Analysing Crime Trends from 2005 to 2016 across all South African provinces, using data analytics

Aman-byte1/african-data-cleaning-pipeline

# African Language Data Cleaning Pipeline This repository contains a robust, checkpoint-enabled dat

PascalBenstrong/Crime-Data-South-Africa

This Project displays reported crime data in South Africa during the period of 2005 to 2016. # Repo

Youssef-Mohamed1/African-Agricultural-Data-Cleaning-And-Testing-Project

# Maji Ndogo's Agriculture Integrated Project Welcome to the repository for the Maji Ndogo's Agricul

shawnsibanda/South-Africa-Crime-Data-Analysis

Analyzed South African crime statistics using Microsoft Excel to determine trends over time. # Sou

elvisthedataevang/data-cleaning-workshop

This hands-on workshop is organized in collaboration with the Statistics and Actuarial Science Socie

Crime and Consequences: Analysing Crime Trends from 2005 to 2016 across all South African provinces, using data analytics

South Africa continues to experience persistently high crime rates, with serious implications for pu