pandastable icon indicating copy to clipboard operation
pandastable copied to clipboard

Issue setting float precision

Open aweaver1fandm opened this issue 3 years ago • 0 comments

I had a column in a pandas table that I set astype(float32) and then set the precision using options = config.load_options() options = {'floatprecision': 2} config.apply_options(options, self.table)

before displaying. But when it displayed, it showed more than 2 decimal places When I changed the column type to simply astype(float) then it worked as expected.

It seems to me that both types should be recognized and formatted properly

aweaver1fandm avatar Nov 07 '22 13:11 aweaver1fandm