Does an error existe on the next code? it shows error on line 7
Try to use LabelEncoder to convert your column moves as numeric:
import pandas as pd
from sklearn.cluster import KMeans
from sklearn.preprocessing import LabelEncoder

dataset = pd.read_csv("smogon.csv")
dataset.drop(["url", 'texto'], axis=1, inplace=True)

# It does not make sense to have only one cluster...
# There is many documentation to find the best number of clusters (elbow method, ...)
km = KMeans(n_clusters=3, n_init='auto')
lbe = LabelEncoder()
dataset['moves_num'] = lbe.fit_transform(dataset['moves'])

cluster = km.fit_predict(dataset[['moves_num']])
dataset["Grupo"] = cluster
print(dataset)


import pandas as pd
from sklearn.cluster import KMeans

dataset = pd.read_csv("smogon.csv")
dataset.drop(["url", 'texto'], axis=1, inplace=True)
km = KMeans(n_clusters=1, n_init='auto')
cluster = km.fit_predict(dataset[["moves"]])
dataset["Grupo"] = cluster
print(dataset)

it shows (cluster = km.fit_predict(dataset[["moves"]])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
also it shows ( could not convert string to float)
im doing a project with kmeans and pandas and when im trying to do the clustering with the csv file it shows an error but when i do it with another csv file, it doesnt show any problem running it.
