title: Unable to convert pandas str column with .0 to int
body: <p>Let's say I have a dataframe that looks like this...</p>
  <pre><code>xdf = pd.DataFrame({ 'foo': ['1', '2', '3']})
  </code></pre>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>foo</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  </tr>
  <tr>
  <td>2</td>
  </tr>
  <tr>
  <td>3</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>And I want to convert the column to type <code>int</code>. I can do that easily with...</p>
  <pre><code>df = df.astype({ 'foo': 'int' })
  </code></pre>
  <p>But if my dataframe looks like this...</p>
  <pre><code>df = pd.DataFrame({ 'foo': ['1.0', '2.0', '3.0']})
  </code></pre>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>foo</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1.0</td>
  </tr>
  <tr>
  <td>2.0</td>
  </tr>
  <tr>
  <td>3.0</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>And I try to convert it from <code>object</code> to <code>int</code> then I get this error</p>
  <pre><code>ValueError: invalid literal for int() with base 10: '1.0'
  </code></pre>
  <p>Why doesn't this work? How would I go about converting this to an <code>int</code> properly?</p>