I'm using the k-means algorithm from the scikit-learn library, and the values I want to cluster are in a pandas dataframe with 3 columns:
I want to cluster the information using
value_2, but I also want to keep the
ID associated with it (so I can create a list of
IDs in each cluster).
What's the best way of doing this? Currently it clusters using the ID number as well and that's not the intention.