How To Use The Kmeans Algorithm To Find Groups In Data With Python

By Mr. Data Science

Let’s say we are data scientists working for a retail company and our boss wants to create a targeted marketing campaign. In order to focus the campaign, we have to divide the set of customers into smaller subsets based on the features in our customer dataset. Features are just the columns in the dataset and each row represents a unique customer. So as the data science team, our job is to somehow find those groups.