hgrecco / pint-pandas

Pandas support for pint
Other
169 stars 42 forks source link

Float formatting in DataFrame is different to pandas' formatting #118

Open andrewgsavage opened 2 years ago

andrewgsavage commented 2 years ago

I've noticed a few places where the formatting seems off.

In the example notebook https://github.com/hgrecco/pint-pandas/blob/c86a73ae0b7801e3ec076cb5bb07ae9186155ddc/notebooks/pint-pandas.ipynb

[12, 14] pandas formats FlowRate column to 2dp / 4sf, eg 17.90 pint-array formats as 17.9

[18, 19] pint-array formats ShaftTorque column to show all digits pandas formats as 6dp / 4sf