https://github.com/sugam-arora/rfm
RFM Analysis Dashboard 📊 is an interactive analytics tool designed to segment customers based on Recency, Frequency, and Monetary (RFM) values. It provides data-driven insights, visualizations, and predictive analytics to help businesses optimize customer retention, engagement, and marketing strategies.
https://github.com/sugam-arora/rfm
Last synced: about 2 months ago
JSON representation
RFM Analysis Dashboard 📊 is an interactive analytics tool designed to segment customers based on Recency, Frequency, and Monetary (RFM) values. It provides data-driven insights, visualizations, and predictive analytics to help businesses optimize customer retention, engagement, and marketing strategies.
- Host: GitHub
- URL: https://github.com/sugam-arora/rfm
- Owner: SUGAM-ARORA
- License: mit
- Created: 2024-10-30T16:27:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-04-03T19:18:28.000Z (about 2 months ago)
- Last Synced: 2025-04-09T10:12:25.665Z (about 2 months ago)
- Language: Python
- Homepage: https://wce3vqv69c4prxooewjnpb.streamlit.app/
- Size: 211 KB
- Stars: 1
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
### **RFM Analysis Dashboard 📊**
**RFM Analysis Dashboard** is a powerful tool designed to analyze customer behavior using **Recency, Frequency, and Monetary (RFM) Analysis**. It helps businesses segment customers based on their purchasing patterns and develop data-driven marketing strategies.
---
## **🚀 Features**
### 🔍 **Customer Segmentation**
- Categorizes customers based on **Recency (last purchase), Frequency (number of purchases), and Monetary value (total spend)**
- Identifies **high-value, at-risk, and inactive customers**### 📊 **Interactive Visualizations**
- **RFM Score Heatmaps** for quick insights
- **Customer Clusters** with visual segmentation
- **Trend Analysis Charts** for purchase patterns### ⚡ **Actionable Insights**
- Helps in **customer retention strategies**
- Assists in **personalized marketing campaigns**
- Improves **customer lifetime value (CLV) predictions**### 📂 **Data Management**
- Accepts **CSV uploads** for easy data import
- **Automated preprocessing** of customer transactions
- Supports **filtering, sorting, and export** of RFM scores### 🎨 **Modern UI/UX**
- **Dark/Light mode toggle**
- **Fully responsive design**
- **Dashboard-style layout with smooth navigation**---
## **🛠️ Tech Stack**
**Python, Streamlit, Pandas, NumPy, Matplotlib, Seaborn, Scikit-Learn**---
## **📌 Installation & Setup**
### **🔧 Prerequisites**
Ensure you have the following installed:
- Python `3.8+`
- pip or conda for package management### **🖥️ Clone the Repository**
```bash
git clone https://github.com/SUGAM-ARORA/RFM-Analysis-Dashboard.git
cd RFM-Analysis-Dashboard
```### **📦 Install Dependencies**
```bash
pip install streamlit
```### **🚀 Run the Application**
```bash
pip install -r requirements.txt
```### **🚀 Run the Streamlit App**
```bash
python -m streamlit run rfm_dashboard.py
```
Open http://localhost:8501 in your browser to access the dashboard.---
## **📊 Understanding RFM Analysis**
**1️⃣ Recency (R)** → *How recently has the customer made a purchase?*
**2️⃣ Frequency (F)** → *How often does the customer purchase?*
**3️⃣ Monetary (M)** → *How much has the customer spent?*The system assigns **RFM scores (1-5)** to each customer based on these metrics, enabling **customer segmentation and targeted marketing strategies**.
---
## **📖 API Endpoints**
### **🔹 Upload Data**
`POST /upload` → Upload a CSV file containing customer transactions### **🔹 Get RFM Scores**
`GET /rfm-scores` → Retrieve RFM scores and segments### **🔹 Export Data**
`GET /export` → Download processed RFM data in CSV format---
## **📜 License**
This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.---
## **🤝 Contributing**
We welcome contributions! Please read the [Contributing Guide](CONTRIBUTING.md) before submitting changes.---
## 🧑💼 Maintainers
## 📬 Contact Details
You can connect with me on various platforms:
[](https://linkedin.com/in/sugam-arora-117265142) [](https://instagram.com/sugam.arora.393?utm_source=qr&igshid=MzNlNGNkZWQ4Mg%3D%3D) [](https://twitter.com/SugamArora14) [](https://facebook.com/sugam.arora.393)[](https://youtube.com/@sugamarora5997)
[](mailto:[email protected])🎯 **Transform customer insights into business success with RFM Analysis Dashboard!** 🚀