ValueError: invalid literal for int() with base 10: ”

The end of the error shows the value that was tried to be parsed.

As a more clear example.

>>> int('55063.000000')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '55063.000000'

In your case, you tried to parse an empty string as an integer.

For the above float example, it needs converted twice.

>>> int(float('55063.000000'))
55063

Leave a Comment