I\'m looking for a way to convert numbers to string format, dropping any redundant \'.0\'
The input data is a mix of floats and strings. Desired output:
0
from decimal import Decimal '%g' % (Decimal(str(x)))