I am using the Silhouette Analysis in K-means Clustering, using the code found it here:
https://medium.com/@cmukesh8688/silhouette-analysis-in-k-means-clustering-cefa9a7ad111
However, when I run the code (using my own data frame) I get different results. In some cases I get
that the optimum number of clusters is 2 while others is 5. Can anyone explain why this happening?