great-tables icon indicating copy to clipboard operation
great-tables copied to clipboard

table with negative data fails to save as image when using .fmt_number

Open Mike-Purtell opened this issue 1 year ago • 17 comments

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.

gt_bug_2024_07_03_MP.txt

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. .

Mike-Purtell avatar Jul 03 '24 21:07 Mike-Purtell