title: TypeError: 'float' object is not iterable with apply lambda
body: <p>I'm trying to apply a condition to a column in my pandas dataframe, but i get this error :<br> 
  <br> 
  <code>TypeError: 'float' object is not iterable</code></p>
  
  <pre><code>Cars = {'Brand': ['Honda Civic','Toyota Corolla','Ford Focus','Audi A4'],
          'Price': [22.000,25.000,27.000,35.000]
          }
  
  Cars = DataFrame(Cars, columns= ['Brand', 'Price'])
  </code></pre>
  
  <pre><code>Cars ['Price'] = Cars ['Price'].apply(lambda x: [0 if y &lt;= 25.000 else 1 for y in x])
  </code></pre>
  
  <p>Any thoughts ?</p>