From 63c98a80819e456da460ce0cc174aefbca5dc0dd Mon Sep 17 00:00:00 2001 From: andrewgsavage Date: Thu, 23 May 2024 21:14:23 +0200 Subject: [PATCH] formatter --- pint_pandas/pint_array.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pint_pandas/pint_array.py b/pint_pandas/pint_array.py index 05f3d62..2bf34e8 100644 --- a/pint_pandas/pint_array.py +++ b/pint_pandas/pint_array.py @@ -365,7 +365,7 @@ def _formatter(self, boxed=False): ``boxed=True``. """ # TODO: remove this once 0.24 is min pint version - if version_parse(pint.__version__).base_version < '0.24': + if version_parse(pint.__version__).base_version < "0.24": float_format = pint.formatting.remove_custom_flags( self.dtype.ureg.default_format ) @@ -987,7 +987,7 @@ def quantify(self, level=-1): def dequantify(self): def formatter_func(dtype): # TODO: remove once pint 0.24 is min version supported - if version_parse(pint.__version__).base_version < '0.24': + if version_parse(pint.__version__).base_version < "0.24": formatter = "{:" + dtype.ureg.default_format + "}" else: formatter = "{:" + dtype.ureg.formatter.default_format + "}"