I'm writing a python script that will be used to write data to an xls file.
In excel you can format numbers to a decimal place, while keeping the original value. I'm using the xlwt
python module to write data, but cannot find anything on this particular topic online.
Is possible to do it with the xlwt
module or any other python module?
Here is what exactly I'm talking about:
Then I highlighted these cells, right click, and selected format. In the format options, I changed 'decimal places' to 1 (from 2).
As you can see the original value is still stored, although it is formatted.