I have defined a function in pyspark to calculate the euclidean distance between my centroids and a bunch of points i have.
def dist(x): b = {\'d1\':distance.eu