title: How to convert float to int and concatenate with a string?
body: <p>I have an array of years ,<code>por</code>. The years are currently floats and include a decimal like 1942.0. I want to remove the decimal place and add &quot;-12-31&quot; so that I have an array with entries that look like &quot;1942-12-31&quot;. I wrote the loop below but when I run it, the decimal remains and the first few instances of the array remain unchanged. Where am I going wrong?</p>
  <pre><code>por=CMStations.por
  for i in por:
      int(i)
      por.loc[i]=str(i)+&quot;-12-31&quot;
  </code></pre>