title: ValueError: could not convert string to float: '.'
body: <p>I have a list of strings (CD_cent) like this:</p>
  
  <pre><code>2.374 2.559 1.204
  </code></pre>
  
  <p>and I want to multiply these numbers with a float number.
  For this I try to convert the list of strings to a list of floats for example with:</p>
  
  <pre><code>CD_cent2=[float(x) for x in CD_cent]
  </code></pre>
  
  <p>But I always get the error: <code>ValueError: could not convert string to float: '.'</code>. I guess this means, that it can't convert the dot to a float (?!) But how could I fix this? Why doesn't it recognize the dot?</p>