Closed buhtz closed 2 weeks ago
Hi @simonjayhawkins, I want to tackle this issue. If you have any suggestions on this, I would be happy to hear it.
I would like to work on this issue as well. Thanks.
Confirmed on main, further investigations and PRs to fix are welcome!
take
@mroeschke @michiel-de-muynck can this be closed by #60230 as well?
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[ ] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
I use
decimal.Decimal
as type for float values in aDataFrame
. Exporting them viato_excel()
resulting in Excel cells with strings not floats. I tried xlsxwriter and openpyxl as engine.See my MWE it seems that openpyxl itself can handle Decimal very well. The result is a real float not a string.
So the problem must somewhere in the pandas layer.
btw: Your Issue formula is to restrictive. I have no way to test the issue on the current upstream version. There are strict technical reasons for this. I haven't tested with upstream but checked the checkbox to be able to submit the Issue.
Expected Behavior
Create real float values in the Excel cells.
Installed Versions