Projects

Production systems and analytical projects.

An enterprise Business Central non-profit rollout, an AI agent system for ERP consultants, and verified data engineering pipelines in DuckDB, Python, and SQL.

Build a CV for my Business Central, finance or data work

All projects

Project

Data · Finance

View repository

Kenyan Bank Customer Segmentation

K-Means clustering & Streamlit portfolio tool for 2,812 retail accounts

Engineered an end-to-end segmentation pipeline that identified two distinct retail banking segments across 2,812 accounts, uncovering an overlooked high-asset, high-credit cohort holding 71% of total deposit value.

  • Python
  • Pandas
  • scikit-learn
  • K-Means Clustering
  • Streamlit
  • Plotly

Context

Uniform marketing campaigns suffered low conversion because retail customer relationship managers lacked behavioral segmentation linking deposit liquidity with debt service capacity.

My role

Data engineer & analyst: exploratory data analysis, data cleansing, feature normalization, K-Means clustering, and Streamlit application engineering.

What I did

  • Cleaned and normalized 2,812 customer records, engineering financial ratio features (debt-to-income, asset-to-balance) and joining 10,013 county geolocation rows.
  • Evaluated silhouette scores (0.58 peak) and elbow inertia plots to validate k=2 as the mathematically optimal cluster partition.
  • Isolated Cluster 0 (28.3% of customers, holding 2.5x higher mean asset balances of KES 2.26M despite lower formal payroll) from mainstream retail borrowers (71.7%).
  • Deployed an interactive Streamlit dashboard allowing credit underwriters and branch managers to filter segments by county risk profiles and run live scenario scoring.

Project

Data

View repository

Maji Ndogo water access assessment

Power BI diagnostic model for rural vs. urban infrastructure

A diagnostic Power BI reporting model evaluating water source reliability, water quality indicators, and resource allocation across 60,000+ survey points in rural and urban districts.

  • Power BI
  • Power Query
  • DAX
  • Data Modeling
  • Infrastructure Analytics

Context

Municipal planners needed to allocate a $147M infrastructure budget but lacked cross-provincial visibility into which community water points were contaminated or non-functional.

My role

Analytics lead: data audit and cleaning, star-schema data modeling in Power BI, DAX measure creation, and visual dashboard design.

What I did

  • Cleaned and harmonized 60,000+ water assessment records in Power Query, standardizing contamination metrics and location coordinates.
  • Designed a star schema and authored complex DAX calculations for per-capita repair cost estimations and functionality rates.
  • Built an executive dashboard spotlighting provinces where basic water access lagged below 34%, directly supporting budget prioritization.

Project

Data

View repository

Global job market data warehouse

1.6M+ job postings processed into a dimensional model in DuckDB

An analytical pipeline that extracts 1.6M+ messy job postings from MotherDuck, processes raw data through a normalized staging layer feeding a dimensional star schema of 10M+ rows, and serves columnar Parquet files via automated CI.

  • Python
  • SQL (Window Functions)
  • DuckDB
  • MotherDuck
  • Parquet
  • GitHub Actions

Context

A read-only MotherDuck database contained 1.6M unstructured hiring records with comma-delimited skill lists, inconsistent work-type flags, and contradictory annualized salary ranges.

My role

Lead data engineer: watermark ingestion logic, dimensional data modeling, salary anomaly debugging, and automated CI publishing.

What I did

  • Implemented incremental watermark extraction in DuckDB, cutting ingest scan times from 12 minutes to 45 seconds for periodic update batches.
  • Designed a star schema with fact_postings and bridge tables for skills and schedule attributes. This structure removed duplicate values across 10M+ rows.
  • Isolated a persistent salary anomaly by auditing upstream ingestion scripts across 5 foreign scrapers, correcting hourly-to-annual scaling errors before loading.
  • Automated Parquet export and schema verification in GitHub Actions. The pipeline publishes updated files directly to the GitHub Pages portal.

Project

Data · Finance

View repository

Credit card fraud pipeline & warehouse

Production Prefect & DuckDB ETL for 284,807 transactions

A Prefect pipeline that ingests, validates, and loads 284,807 credit card transactions into DuckDB with Pandera schema gates across a 0.172% fraud class.

  • Python
  • Pandera
  • DuckDB
  • Prefect 2.0
  • Docker
  • Pytest
  • GitHub Actions

Context

Downstream fraud detection models degrade rapidly when fed unvalidated data. With only 492 fraud cases among 284,807 records, raw ingestion errors distort model classification.

What I did

  • Constructed a Pandera schema contract that validates data types, range bounds, and non-null constraints. Any schema violation stops the run.
  • Engineered temporal transaction features, including rolling transaction frequency, standardized expenditure amounts, and off-hour transaction flags.
  • Ran multi-stage execution in Prefect with automated task retries, exponential backoff, and localized DuckDB storage.
  • Containerized the ETL pipeline with Docker and added automated unit and schema regression tests in GitHub Actions CI.

Project

Data · Finance

View repository

Kenya loan analysis

County-level credit risk modeling and interactive underwriting dashboard

An automated credit risk pipeline that integrates borrower demographics, repayment history, and county economic indicators to score loan eligibility and surface portfolio default concentrations.

  • Python
  • Pandas
  • scikit-learn
  • Streamlit
  • Plotly
  • Pytest

Context

Manual loan appraisal created 3–5 day approval bottlenecks and failed to detect regional delinquency spikes tied to localized economic trends across Kenyan counties.

What I did

  • Engineered borrower risk indicators from historical repayment records, evaluating debt-to-income and loan-to-value ratios across regional segments.
  • Trained classification algorithms with k-fold cross-validation, using feature importance rankings to identify default predictors.
  • Built an interactive Streamlit application with Plotly geospatial maps, visualizing default risk exposure across 47 Kenyan counties.
  • Implemented automated unit tests in pytest to validate data ingestion pipelines and risk scoring math.