title: Python pandas - ValueError: invalid literal for int() with base 10:
body: <p>I have a dataframe with a column named <code>year</code> in object format. I want to convert object to int but I have this error :</p>
  <blockquote>
  <p>ValueError: invalid literal for int() with base 10: '2021.0'</p>
  </blockquote>
  <p>Here is my code :
  <code>data_h_df['year'].astype(str).astype(int)</code></p>