This repository contains an interactive E-commerce Sales Analytics dashboard implemented in Python (Streamlit).
- Sales over time analysis (weekly aggregation).
- Top products and category breakdowns.
- Basic customer segmentation (RFM-like segmentation by monetary value).
- Geography-based revenue charts (country, city).
- Revenue distribution and price vs quantity scatter plot.
- Download filtered data as CSV.
- Clone or extract the repo.
- Put your sales CSV in the
data/folder. The sample CSV included is namedsample_ecom_sales.csv. Expected columns (case-insensitive):order_id,order_date,customer_id,product_id,product_category,country,city,quantity,price - Create a virtual env and install dependencies:
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
pip install -r requirements.txt- Run the app:
streamlit run app.py- The app computes
revenue = quantity * priceifrevenueis not provided. - If your file has different column names, rename them or modify
app.pymapping accordingly.
MIT