dmnfarrell / pandastable

Table analysis in Tkinter using pandas DataFrames.
Other
631 stars 126 forks source link

Issue setting float precision #233

Open aweaver1fandm opened 1 year ago

aweaver1fandm commented 1 year ago

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