title: Want to use a lambda function to change the type of a cell if it is type float
body: <p>I'd like to convert any cell that is type <code>float</code> to type <code>int</code>:</p>
  
  <p>My thought was use lambda functions like this:</p>
  
  <pre><code>df["ev_id"].apply(lambda x: [int(x) if x is type(float)])
  </code></pre>
  
  <p>But this raises a syntax error which I'm not able to catch. Any help would be much appreciated. </p>
  
  <p>Original data:</p>
  
  <pre><code>ev_id
  " "
  343.0
  234.0
  " "
  212.0
  "Temp"
  </code></pre>
  
  <p>Transformed:</p>
  
  <pre><code>ev_id
  " "
  343
  234
  " "
  212
  "Temp"
  </code></pre>