write_excel(..., autofit=True)
auto-fits to source, not formatted data
#17853
Labels
A-io-spreadsheet
Area: reading/writing Excel/ODS files
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Issue description
When using
autofit
, it appears the column width is calculated from the original number, not from the formatted result. In the example above, the column width is as it would be had we kept many decimals in the output format, and as a result, we have unused whitespace.Expected behavior
Should fit to truncated, output-formatted decimal.
Installed versions
main
The text was updated successfully, but these errors were encountered: