dmnfarrell / pandastable

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

Showing long digit numbers to Scientific format #231

Closed nira123 closed 1 year ago

nira123 commented 2 years ago

Hi Damien, Is there a way to show the values to Scientific figures i.e 1.2734E06 instead long display in pandas table ? It would be better if possible. Thanks.

nira123 commented 1 year ago

I was able to get this worked using : for example: self.sectionProperties.model.df.at[4,'Value']= f"{Decimal(str(abs(round(your_value, 3)))):.3E}"