This was the first phase of my Olist E-commerce trilogy. The goal was to build a local data foundation by ingesting raw datasets into a relational database and performing deep-dive exploratory data analysis (EDA) to uncover the "why" behind sales and satisfaction trends.
The dataset consists of ~100k orders from 2016 to 2018 in Brazil, provided by Olist.
This project focuses on Local Data Engineering. I developed a modular pipeline of Python scripts to automate the ingestion and analysis process:
01_create_database.py: UsesSQLAlchemyto programmatically read 9 CSV files and build a structured SQLite database.02_customer_analysis.py: SQL-driven analysis of customer geographic concentration.03_product_revenue_analysis.py: Financial analysis using multi-table joins to identify top-performing categories.04_satisfaction_analysis.py: Advanced SQL query usingJULIANDAYto calculate average delivery times per review score.05_visualize_customer_distribution.py: Statistical visualization usingSeabornandMatplotlib.
- Market Concentration: São Paulo (SP) is the primary hub, followed by RJ and MG.
- Revenue Leaders:
beleza_saudeandrelogios_presentesemerged as the most profitable categories. - Logistics & Satisfaction: I discovered a critical correlation—1-star reviews are directly tied to longer delivery windows (calculated as an average of days between purchase and delivery).
After mastering the local analysis, I moved this project forward into two more advanced phases:
- Phase 2: Business Intelligence (Power BI) - Turning these insights into an executive-level interactive dashboard.
- Phase 3: Production Cloud ELT (GCP) - Scaling the entire pipeline to the cloud using BigQuery and Dataform.
- Languages: Python, SQL (SQLite)
- Libraries: Pandas, SQLAlchemy, Seaborn, Matplotlib