pandas literal no válido para long () con error de base 10
Estoy tratando de hacer:df['Num_Detections'] = df['Num_Detections'].astype(int)
Y recibo el siguiente error:
ValueError: literal no válido para long () con base 10: '12 .0 '
Mis datos se ven a continuación:
>>> 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
¿Alguna idea de cómo hacer la conversión correctamente?
Gracias por la ayuda.