Verified credentials. On-chain. Forever.Learn more

Code

Building a Customer Segmentation Tool for a SaaS Scale-up

FreeVerified credential2 weeksIntermediate

Overview

What this challenge is about.

You are provided with a JSON file containing user data: user_id, total_logins, days_since_last_login, features_used (count), subscription_tier (free/basic/premium). Your task is to write a Python script that: (1) loads and preprocesses the data (normalize numeric features, encode subscription tier), (2) applies k-means clustering with k=4, (3) assigns each user to a segment, (4) outputs a CSV with user_id and segment label, and (5) generates a scatter plot (PCA-reduced) colored by segment. Success means the script runs end-to-end and the segments are interpretable. Constraints: use only scikit-learn, pandas, matplotlib; no external APIs.

CredentialBlockchain-anchored
ShareableLinkedIn-ready
LanguageEnglish
PaceSelf-paced

The Brief

What you'll do, and what you'll demonstrate.

How can TaskFlow automatically segment its user base to enable targeted marketing and reduce churn?

Earning criteria — what you'll demonstrate

  • Use pandas to load and manipulate JSON data into a DataFrame
  • Apply data preprocessing techniques (normalization, encoding) for machine learning
  • Implement k-means clustering using scikit-learn and determine optimal k via elbow method
  • Visualize clustering results using PCA and matplotlib

Program Fit

Where this fits in your program.

Sharpens the same skills your degree expects you to demonstrate.

Skills

Skills you'll demonstrate.

Each one shows up on your verified credential.

Careers

Roles this prepares you for.

Real titles. Real skill bridges. Pick the one closest to your trajectory.

Career mappings coming soon.

One more thing

You can put a credential on your CV by Friday.

Building a Customer Segmentation Tool for a SaaS Scale-up | Ewance Challenge