title: ValueError: could not convert string to float: '.' Python
body: <p>So I am trying to make sure that all the values that I have in the csv file are converted into float. The values in each cell inside the csv file are just numbers like for example &quot;0.089&quot; &quot;23&quot;. For some reason when I try to run the code it is giving the following error, &quot; ValueError: could not convert string to float: '.' &quot;
  I can not really understand why the program is not reading the numbers from the csv file properly.</p>
  <pre><code>def loadCsv(filename):
      with open('BreastCancerTumor.csv','r') as f:
          lines = f.readlines()[1:]
      dataset = list(lines)
      for i in range(len(dataset)):
          dataset[i] = [float(x) for x in dataset[i]]
      return dataset
  </code></pre>