Q34. A student writes: kmeans = KMeans(n_clusters=3) df["cluster"] = kmeans.fit(X) What is the issue?Single choice

A

KMeans cannot be used with DataFrames

B

.fit() does not return cluster labels; use .fit_predict() or .labels_

C

The number of clusters must be 2

D

The DataFrame must be sorted first

E

The model must be saved before fitting

Log in for full answers

We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!