great-tables
great-tables copied to clipboard
table with negative data fails to save as image when using .fmt_number
Description
Saving image of a table to png file fails when the table has negative values, and .fmt_number is used.
Reproducible example - Verified on complex use cases, and the simple example posted here. Notice that the file extension is .txt, please change to .py or paste into a notebook to run this code.
Development environment
Win11, great_tables 0.9.0, python 3.11.5 with Anaconda/Jupyter Lab, polars 0.20.31
Expected result
Expect that table with negative data can use .fmt_number to clean the table, and then can be saved as an image file. This failed. .