Coding Challenge: Create k-Means Model
Create a k-means model with 3 clusters and assign cluster labels to the dataset.
We'll cover the following
Problem statement
In this challenge, we need to create a -Means model with 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 instances of the resulting dataset using the head()
function.
Expected output
Get hands-on with 1400+ tech skills courses.