<jupyter_start><jupyter_text><jupyter_code>import sklearn<jupyter_output><empty_output><jupyter_text>新しいセクション<jupyter_code>!git clone https://github.com/kihaya/heisei_kamenrider_spec
!ls heisei_kamenrider_spec
import pandas as pd
data = pd.read_csv("heisei_kamenrider_spec/kamenrider_spec.csv",sep=",")
data
del data["year"]
data.iloc[:, 1:]
data
from sklearn.cluster import KMeans
kmeans_model = KMeans(n_clusters=3, random_state=9999).fit(data.iloc[:, 1:])
labels = kmeans_model.labels_
print(labels)
data.iloc[2]
data.iloc[11]<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup