Hi, Domas.
Answering both questions:
- The default distance is
SqEuclidean. You can change it with thedistkwarg medoids(ClusterResults)callsuniqueinclusterResults.assignments.cluster_center, so the vector is ordered as the cluster centers show up in that dataframe’s column. This can be verified by comparing thecluster_centercolumn andmedoids(res)shown in the question
Hope this helps.
Lucas.