An open API service indexing awesome lists of open source software.

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.

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

Sugam Arora




Ojas Arora




## 📬 Contact Details

You can connect with me on various platforms:

[![LinkedIn](https://img.shields.io/badge/LinkedIn-%230077B5.svg?logo=linkedin&logoColor=white)](https://linkedin.com/in/sugam-arora-117265142) [![Instagram](https://img.shields.io/badge/Instagram-%23E4405F.svg?logo=Instagram&logoColor=white)](https://instagram.com/sugam.arora.393?utm_source=qr&igshid=MzNlNGNkZWQ4Mg%3D%3D) [![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?logo=Twitter&logoColor=white)](https://twitter.com/SugamArora14) [![Facebook](https://img.shields.io/badge/Facebook-%231877F2.svg?logo=Facebook&logoColor=white)](https://facebook.com/sugam.arora.393)[![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?logo=YouTube&logoColor=white)](https://youtube.com/@sugamarora5997)
[![Gmail](https://img.shields.io/badge/Gmail-%23FFFFFF.svg?logo=gmail&logoColor=red)](mailto:[email protected])

🎯 **Transform customer insights into business success with RFM Analysis Dashboard!** 🚀