title: Distance between clusters kmeans sklearn python
body: <p>I am using sklearn's k-means clustering to cluster my data. Now I want to have the distance between my clusters, but can't find it. I could calculate the distance between each centroid, but wanted to know if there is a function to get it and if there is a way to get the minimum/maximum/average linkage distance between each cluster. My code is very simple:</p>
  
  <pre><code>km = KMeans(n_clusters = 5, random_state = 1)
  km.fit(X_tfidf )
  
  clusterkm = km.cluster_centers_
  
  clusters = km.labels_.tolist()
  </code></pre>
  
  <p>Thank you! </p>