title: k-means in python: Determine which data are associated with each centroid
body: <p>I've been using <code>scipy.cluster.vq.kmeans</code> for doing some k-means clustering, but was wondering if there's a way to determine which centroid each of your data points is (putativly) associated with.</p>
  
  <p>Clearly you could do this manually, but as far as I can tell the kmeans function doesn't return this?</p>