Clustering, Segmentation, Data Science, Remote Sensing, Satellite.
write a versatile function for any number of dimensions: def distance(data, centroids, kind): #kind = euclidean, manhattan, chebyshev #Here we add to the dataframe as many clusters C-ith as needed cols=list() for i in range(1,k+1): if kind=='euclidean': data[f'C{i}'] =