title: Will pandas dataframe object work with sklearn kmeans clustering?
body: <p>dataset is pandas dataframe. This is sklearn.cluster.KMeans</p>
  
  <pre><code> km = KMeans(n_clusters = n_Clusters)
  
   km.fit(dataset)
  
   prediction = km.predict(dataset)
  </code></pre>
  
  <p>This is how I decide which entity belongs to which cluster:</p>
  
  <pre><code> for i in range(len(prediction)):
       cluster_fit_dict[dataset.index[i]] = prediction[i]
  </code></pre>
  
  <p>This is how dataset looks:</p>
  
  <pre><code> A 1 2 3 4 5 6
   B 2 3 4 5 6 7
   C 1 4 2 7 8 1
   ...
  </code></pre>
  
  <p>where A,B,C are indices</p>
  
  <p>Is this the correct way of using k-means?</p>