Coding Challenge: Create k-Means Model

Create a k-means model with 3 clusters and assign cluster labels to the dataset.

Problem statement

In this challenge, we need to create a KK-Means model with 33 clusters and assign it to the model variable. After doing that, we must assign cluster labels to the dataset, and assign the result to the clusters variable. Finally, we need to print the first 1010 instances of the resulting dataset using the head() function.

Expected output

Get hands-on with 1200+ tech skills courses.