A very common task in data analysis is that of grouping a set of objects into subsets such that all elements within a group are more similar among them than they are to the others. The practical applications of such a procedure are many: given a medical image of a group of cells, a clustering algorithm could aid in identifying the centers of the cells; looking at the GPS data of a user’s mobile de
![Clustering With K-Means in Python | The Data Science Lab](https://cdn-ak-scissors.b.st-hatena.com/image/square/f7de6347ac7bbabf356e908eec56751348171ad8/height=288;version=1;width=512/https%3A%2F%2Fdatasciencelab.wordpress.com%2Fwp-content%2Fuploads%2F2013%2F12%2Fp_n100_k7.gif)