I have a dataframe with large set of records.
When this dataframe is converted to CSV it give accurate results with all digits after decimals. However the same dataframe when converted to excel (xlsx) then the Decimal Values get rounded off in the Excel sheet (most of them up to two decimal places).
For example:
CSV output: 3363.6499999999999
Excel output: 3363.65
I am writing the output in output=BytesIO() to save the Excel in S3 using "put(output.getvalue())"
output= BytesIO()
writer=pd.ExcelWriter(output)
df.to_excel(writer, index= False)
writer.save()
I do not want to round. I would like my actual value without any changes. How do I convert to_excel without rounding?