I need to create an excel file to upload data to the database.
here I use xlwt
to create the excel file.
I have a field that should be a currency, let's say "Rent". When the user downloads the excel and fills in the data, the cells under "Rent" should be auto formatted to 12,000,000.00 like format (that has thousand separator commas).
When downloading the data we won't have any idea of how many rows will be there, so we can't just add a loop in range n and add style for those cells.
I have found a similar question here
If there is a method in different packages, suggestions can be made.