How k-sahaj/retailpulse works
RetailPulse is an end-to-end retail analytics project: it converts raw transaction data, cleans and normalizes it, then analyzes business performance and customer behavior. Its principal workflow runs from a source workbook through PostgreSQL staging and a five-table model to exploratory and advanced analyses. The README documents RFM segmentation, cohort retention, market-basket analysis, and a Tableau dashboard. Only the CSV converter was sampled; other links below rely on the README’s pipeline description, not inspection of those implementations.
Main entry points: analysis.ipynb Advanced analysis · eda.ipynb Exploratory analysis · 03_normalization.sql Normalized schema · 01_load_and_inspection.sql Staging table
Components 20
Data ingestion
- Excel converter
data/data_to_csv.py - Transaction CSV
data
Data preparation
- PostgreSQL
- Staging table
sql/01_load_and_inspection.sql - Data cleaning
sql/02_transformation.sql - Normalized schema
sql/03_normalization.sql
Exploratory analysis
- EDA queries
EDA/insights.sql - Exploratory analysis
EDA/eda.ipynb - Geographic insights
EDA - Order and revenue trends
EDA - Cancellation analysis
EDA
Customer analytics
- Advanced analytics SQL
sql/analytics.sql - RFM segmentation
Analysis - Cohort retention
Analysis - Market basket analysis
Analysis - Advanced analysis
Analysis/analysis.ipynb
Business reporting
- Tableau dashboard
- Strategic action plan
RetailPulse - Case Study.pdf
Other components
- Analyst
- Retail workbook
Connections 21
- Analyst → Retail workbook: supplies data
README.md - Retail workbook → Excel converter: reads workbook
data/data_to_csv.py - Excel converter → Transaction CSV: writes CSV
data/data_to_csv.py - Transaction CSV → Staging table: loads rows
README.md - Staging table → PostgreSQL: stores data
README.md - Staging table → Data cleaning: cleans data
README.md - Data cleaning → Normalized schema: normalizes rows
README.md - Normalized schema → PostgreSQL: stores model
README.md - Normalized schema → EDA queries: queries model
README.md - EDA queries → Exploratory analysis: visualizes findings
README.md - Exploratory analysis → Geographic insights: examines geography
README.md - Exploratory analysis → Order and revenue trends: examines trends
README.md - Exploratory analysis → Cancellation analysis: examines cancellations
README.md - Normalized schema → Advanced analytics SQL: queries model
README.md - Advanced analytics SQL → Advanced analysis: supports analysis
README.md - Advanced analysis → RFM segmentation: segments customers
README.md - Advanced analysis → Cohort retention: measures retention
README.md - Advanced analysis → Market basket analysis: finds product pairs
README.md - Exploratory analysis → Tableau dashboard: informs dashboard
README.md - Advanced analysis → Tableau dashboard: informs dashboard
README.md - Advanced analysis → Strategic action plan: guides recommendations
README.md