Coding Exercise: Classify and Cluster Customer Data

Use scikit-learn to find patterns in real-world data.

Scenerio

Imagine you’re a data scientist at an e-commerce company. You’re given customer data and need to:

  1. Build a KNN classifier to predict customer segments.

  2. Use K-means clustering to group customers.

  3. Visualize both results using scatter plots.

Dataset

Let’s have a look at a few entries of the dataset you will be working on:

Get hands-on with 1400+ tech skills courses.