Case 04Analytics
Retail Domain Analytics on Databricks
Customer behaviour, spending and segmentation on the Olist e-commerce dataset.
RoleData Engineer Intern
ContextCP Axtra · Internship
Period2025
Key result3 segments VIP · Loyal · Normal
5 notebooks
Load → analyse → visualise → segment
3 segments
VIP · Loyal · Normal
Overview
An independent learning project during my CP Axtra internship, exploring analytics workflows on Databricks with the public Olist Brazilian e-commerce dataset.
The problem
Order, item, payment and customer data sit in separate tables. Answering simple business questions — who spends the most, and where — means joining and modelling them first.
Architecturedata flow →
01 Source
Olist dataset
orders · payments
02 Load
Delta tables
Databricks
03 Analyse
PySpark + SQL
state · spend · AOV
04 Segment
VIP / Loyal / Normal
What I built
- 01Created Delta tables from raw customer, order, item and payment CSVs.
- 02Used PySpark and SQL to analyse customer distribution by state, order patterns and spending.
- 03Calculated per-customer order count, total spend and average order value.
- 04Built spend-based customer segments: VIP (> 1,000), Loyal (> 500) and Normal.
- 05Visualised spending distribution, segments and average order value.
Stack
DatabricksPySparkSQLDelta Lakematplotlib