title: 'numpy.float64' object has no attribute 'apply'
body: <p>I'm trying to change a cell value (colour 'red' or 'green') based on a value of another cell. I run the following:</p>
  
  <pre><code>df.loc[0, 'Colour'] = df.loc[0, 'Count'].apply(lambda x: 'Red' if x &lt;= 500 
      else 'Green')
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>AttributeError: 'numpy.float64' object has no attribute 'apply'
  </code></pre>
  
  <p>any help is greatly appreciated</p>