title: ValueError: could not convert string to float: 'GIAC'
body: <p>I am trying to perform a K Means Clustering on a set of data that all texts. I have tried these lines of code and I am getting an error saying "ValueError: could not convert string to float: 'GIAC'".</p>
  
  <p>I think the program is still having problems converting my text into vectors to be able to perform a clustering.</p>
  
  <p>I really do not know how to solve this.</p>
  
  <p>Here are the lines of code:</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plot
  import pandas as pd
  from sklearn.cluster import KMeans
  
  Cert = pd.read_csv('Certification.csv')
  
  X = Cert.iloc[:,:].values
  
  wcss =[]
  
  for i in range(1,5):
      kmeans = KMeans(n_clusters = i, init='k-means++', random_state = 0)
      kmeans.fit(X)
      wcss.append(kmeans.inertia_)
  
  plot.plot(range(1,5),wcss)
  plot.title('Elbow Method')
  plot.xlabel('Number of Clusters')
  plot.ylabel('WCSS')
  plot.show()
  </code></pre>
  
  <p>I also have attached a screenshot of the error message.<a href="https://i.stack.imgur.com/qZ9dZ.png" rel="nofollow noreferrer">error message</a></p>
  
  <p>enter code here</p>