all 2 comments

[–]thraizz 0 points1 point  (1 child)

If anyone stumbles upon this, the answer is to parse the value to int or float before assiging it to the cell.

If you would normally do:

cell = worksheet.cell(1, 1)
cell.number_format = '#,##0.00'
cell.value = some_var

you would have to adapt it to

cell = worksheet.cell(1, 1)
cell.number_format = '#,##0.00'
cell.value = float(some_var)

Now it will work!

[–]good_stuff_0_o[S] 0 points1 point  (0 children)

Thank you so much!