How varma5359/ecommerce-sales-analytics works
This is a Streamlit e-commerce analytics dashboard. Users upload a CSV/Excel file or use the bundled dataset; the app checks and cleans the data before presenting KPI, sales, customer, product, statistics, and quality views. The graph separates UI pages from analysis and data-preparation logic. Some page-to-module links are supported by the SOURCE INDEX rather than full excerpts; the insights capability is documented, but its runtime integration is not shown.
Main entry points: app.py Home dashboard · data_loader.py Data loader · dashboard.py Executive dashboard · page_utils.py Page data access
Components 20
Dashboard experience
- Home dashboard
app.py - Executive dashboard
pages/dashboard.py - Sales page
pages/sales.py - Customer page
pages/customers.py - Products page
pages/products.py - Statistics page
pages/statistics.py - Data quality page
pages/data_quality.py
Data preparation
- Data loader
src/data_loader.py - Data validation
src/validation.py - Data cleaning
src/data_cleaning.py - Page data access
src/page_utils.py
Business analysis
- KPI calculations
src/kpi.py - Sales analysis
src/sales_analysis.py - Customer analysis
src/customer_analysis.py - Product analysis
src/product_analysis.py - Statistical analysis
src/statistics.py - Business insights
src/insights.py
Configuration and data
- App and data rules
config/config.py - Bundled transactions
data/ecommerce_data.csv
Other components
- Business user
Connections 31
- Business user → Home dashboard: opens dashboard
README.md - Business user → Data loader: uploads file
README.md - Home dashboard → Data loader: loads data
app.py - Home dashboard → Data validation: validates data
app.py - Home dashboard → Data cleaning: cleans data
app.py - Data loader → App and data rules: reads settings
src/data_loader.py - Data loader → Bundled transactions: reads default CSV
src/data_loader.py - Home dashboard → Executive dashboard: offers page
README.md - Executive dashboard → Page data access: gets data
pages/dashboard.py - Executive dashboard → KPI calculations: calculates KPIs
pages/dashboard.py - Executive dashboard → Sales analysis: summarizes sales
pages/dashboard.py - Executive dashboard → Statistical analysis: calculates statistics
pages/dashboard.py - Home dashboard → Sales page: offers page
README.md - Sales page → Page data access: gets data
pages/sales.py - Sales page → Sales analysis: analyzes sales
pages/sales.py - Home dashboard → Customer page: offers page
README.md - Customer page → Page data access: gets data
pages/customers.py - Customer page → Customer analysis: segments customers
pages/customers.py - Customer page → Statistical analysis: calculates statistics
pages/customers.py - Home dashboard → Products page: offers page
README.md - Products page → Page data access: gets data
pages/products.py - Products page → Product analysis: analyzes products
pages/products.py - Home dashboard → Statistics page: offers page
README.md - Statistics page → Page data access: gets data
pages/statistics.py - Statistics page → Statistical analysis: calculates statistics
pages/statistics.py - Home dashboard → Data quality page: offers page
README.md - Data quality page → Data loader: loads data
pages/data_quality.py - Data quality page → Data validation: checks quality
pages/data_quality.py - Business insights → KPI calculations: uses KPI logic
src/insights.py - Business insights → Statistical analysis: uses statistics
src/insights.py - Business insights → Data loader: uses data utilities
src/insights.py