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 -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
Access this course and 1400+ top-rated courses and projects.