type conversion in python from float to int
<p>I am trying to change <code>data_df</code> which is type <code>float64</code> to <code>int</code>.</p>

<pre><code>data_df['grade'] = data_df['grade'].astype(int)
</code></pre>

<p>I get the following error.</p>

<blockquote>
  <p>invalid literal for int() with base 10: '17.44'</p>
</blockquote>