The Mall Customers dataset — source, features, and why it's ideal for segmentation.
The Mall Customers dataset is a widely-used dataset in customer segmentation research. It was collected from a shopping mall's membership cards and contains demographic and behavioural data of 200 customers.
Source: Kaggle — Mall Customer Segmentation Data
Size: 200 rows × 5 columns
Format: CSV
Target: Unsupervised (no class label)
| Column | Type | Description |
|---|---|---|
| CustomerID | Integer | Unique identifier — dropped before clustering |
| Gender | String | Male or Female — encoded as binary |
| Age | Integer | Customer age in years (18–70) |
| Annual Income | Integer | Annual income in thousands of dollars (15–137) |
| Spending Score | Integer | Mall-assigned score 1–100 based on purchase behaviour |
| Column | Data Type | Category |
|---|---|---|
| CustomerID | int64 | Numerical |
| Gender | str | Numerical |
| Age | int64 | Numerical |
| Annual Income (k$) | int64 | Numerical |
| Spending Score (1-100) | int64 | Numerical |
| Column | Missing Count | Status |
|---|---|---|
| CustomerID | 0 | ✅ Clean |
| Gender | 0 | ✅ Clean |
| Age | 0 | ✅ Clean |
| Annual Income (k$) | 0 | ✅ Clean |
| Spending Score (1-100) | 0 | ✅ Clean |
| CustomerID | Gender | Age | Annual Income (k$) | Spending Score (1-100) |
|---|---|---|---|---|
| 1 | Male | 19 | 15 | 39 |
| 2 | Male | 21 | 15 | 81 |
| 3 | Female | 20 | 16 | 6 |
| 4 | Female | 23 | 16 | 77 |
| 5 | Female | 31 | 17 | 40 |
| CustomerID | Gender | Age | Annual Income (k$) | Spending Score (1-100) |
|---|---|---|---|---|
| 196 | Female | 35 | 120 | 79 |
| 197 | Female | 45 | 126 | 28 |
| 198 | Male | 32 | 126 | 74 |
| 199 | Male | 32 | 137 | 18 |
| 200 | Male | 30 | 137 | 83 |