pandas invalid literal for long() with base 10 error
<p>I am trying to do:  <code>df['Num_Detections'] = df['Num_Detections'].astype(int)</code></p>

<p>And i get following error: </p>

<blockquote>
  <p>ValueError: invalid literal for long() with base 10: '12.0'</p>
</blockquote>

<p>My data looks looks following:</p>

<pre><code>&gt;&gt;&gt; df['Num_Detections'].head()
Out[6]: 
sku_name
DOBRIY MORS GRAPE-CRANBERRY-RASBERRY 1L     12.0
AQUAMINERALE 5.0L                            9.0
DOBRIY PINEAPPLE 1.5L                        2.0
FRUKT.SAD APPLE 0.95L                      154.0
DOBRIY PEACH-APPLE 0.33L                    71.0
Name: Num_Detections, dtype: object
</code></pre>

<p>Any idea how to do the conversion correctly ?</p>

<p>Thanks for help.</p>