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.