An interactive sales analytics dashboard built with Python and Streamlit, using the classic Superstore dataset. This project demonstrates a complete data analytics pipeline β from raw data ingestion and cleaning to KPI calculation and interactive visualizations.
- Interactive Sidebar Filters β Filter the entire dashboard by Year, Region, and Category in real time
- 5 Key Performance Indicators β Total Sales, Total Profit, Total Orders, Avg. Order Value, and Profit Margin
- 5 Visualizations:
- Monthly Sales Trend (area line chart)
- Sales & Profit by Category (grouped bar chart)
- Sales by Region (bar chart)
- Profit by Sub-Category (horizontal bar chart with green/red coloring)
- Sales Share by Customer Segment (pie chart)
- Raw Data Explorer β Browse filtered data in an interactive table and download it as a CSV
βββ app.py # Main Streamlit application
βββ Superstore.csv # Source dataset
βββ requirements.txt # Python dependencies
βββ .gitignore # Git exclusion patterns
βββ README.md # Project documentation
| Tool | Purpose |
|---|---|
| Python 3.x | Core programming language |
| Pandas | Data loading, cleaning, and aggregation |
| Streamlit | Interactive web dashboard framework |
| Matplotlib | Chart rendering |
| Seaborn | Chart styling and higher-level plots |
- Python 3.8 or higher
- pip (Python package manager)
-
Clone or download this repository to your local machine.
-
Navigate to the project directory:
cd Python-Project -
Install dependencies:
pip install -r requirements.txt
-
Run the dashboard:
python -m streamlit run app.py
-
The app will open automatically in your browser at
http://localhost:8501
The project uses the Sample Superstore dataset β a widely-used retail sales dataset containing order details across categories like Furniture, Office Supplies, and Technology across regions of the United States.
Key columns used:
| Column | Description |
|---|---|
Order Date |
Date the order was placed |
Sales |
Revenue generated per order line |
Profit |
Net profit per order line |
Quantity |
Units sold |
Discount |
Discount applied |
Category |
Product category |
Sub-Category |
Product sub-category |
Region |
Geographic region (East, West, Central, South) |
Segment |
Customer segment (Consumer, Corporate, Home Office) |
Raw CSV Data
β
βΌ
Data Loading (with encoding fallback)
β
βΌ
Data Cleaning (datetime parsing, derived columns)
β
βΌ
Interactive Filtering (sidebar)
β
βΌ
KPI Calculation
β
βΌ
Visualizations & Dashboard
β
βΌ
Export (CSV download)
- KPI Metrics Row β High-level business health at a glance
- Monthly Sales Trend β Identify seasonality and growth patterns
- Category & Region Charts β Understand where revenue comes from
- Sub-Category Profitability β Spot which products lose money (shown in red)
- Customer Segment Breakdown β See which customer type drives the most sales
- Data Explorer β Drill into the raw filtered data
Built as part of the Data Analytics with Python subject project.