title: Python - float object is not subscriptable
body: <p>Sorry, I've seen many question related with this error but even with all this information I can't solve it.</p>
  <p>I have a dataframe <code>df</code> with a column named <code>int_rate</code>. The column's type is <code>O</code>. It keeps the percentages, so each line is like: <code>10.95 %</code> I need to remove the <code>%</code> sign to transform then the column in <code>int</code>. I've tried with the following code:</p>
  <pre class="lang-py prettyprint-override"><code>df['int_rate']=df['int_rate'].apply(lambda x: x[:-1])
  </code></pre>
  <p>I get the following error:</p>
  <blockquote>
  <p>TypeError: 'float' object is not subscriptable.</p>
  </blockquote>
  <p>The first thing I don't understand is why float object if my column type is not float, and if so, how can I get rid of <code>%</code> sign?</p>