How analyticsdurgesh/walmart-sales-analytics works
Walmart Sales Analytics is a Streamlit dashboard for weekly store sales and sample point-of-sale data. Users choose a bundled CSV, upload, or database query; the app loads and normalizes the data, then presents summaries, store/product/customer views, economic signals, and a baseline weekly forecast. Separately, the ETL path cleans CSV data into PostgreSQL or MySQL tables, whose SQL files define schemas, indexes, views, and analysis queries. The graph follows documented and excerpted calls; SQL setup details and some runner behavior are documented but not fully sampled.
Main entry points: app.py Streamlit dashboard · run.py Project runner · data_loader.py Data loaders · etl.py CSV ETL loader
Components 14
Dashboard
- Streamlit dashboard
app.py - Project runner
run.py
Data Preparation
- Data loaders
src/data_loader.py - Cleaning and summaries
src/transform.py - Weekly sales CSV
data/raw/walmart_real_sales.csv - POS sample CSV
data/sample/walmart_sales_sample.csv - Dataset downloader
src/download_dataset.py - CSV ETL loader
src/etl.py
Analytics
- Baseline forecast
src/forecasting.py
Database
- PostgreSQL SQL
sql/postgres - MySQL SQL
sql/mysql - PostgreSQL or MySQL
Other components
- Analyst
- Hugging Face dataset
Connections 19
- Analyst → Streamlit dashboard: chooses data
README.md - Streamlit dashboard → Data loaders: loads data
app.py - Data loaders → Weekly sales CSV: reads CSV
src/data_loader.py - Data loaders → POS sample CSV: reads CSV
src/data_loader.py - Data loaders → Cleaning and summaries: normalizes data
src/data_loader.py - Streamlit dashboard → Cleaning and summaries: summarizes data
app.py - Streamlit dashboard → Baseline forecast: requests forecast
app.py - Dataset downloader → Hugging Face dataset: downloads dataset
src/download_dataset.py - Dataset downloader → Weekly sales CSV: writes CSV
src/download_dataset.py - Project runner → Streamlit dashboard: starts dashboard
README.md - Project runner → CSV ETL loader: runs database load
README.md - CSV ETL loader → Weekly sales CSV: reads CSV
src/etl.py - CSV ETL loader → Cleaning and summaries: cleans rows
src/etl.py - CSV ETL loader → PostgreSQL or MySQL: loads tables
src/etl.py - Streamlit dashboard → PostgreSQL or MySQL: queries database
app.py - Project runner → PostgreSQL SQL: sets up schema
README.md - Project runner → MySQL SQL: sets up schema
README.md - PostgreSQL SQL → PostgreSQL or MySQL: defines tables and views
- MySQL SQL → PostgreSQL or MySQL: defines tables and views