hgrecco / pint-pandas

Pandas support for pint
Other
166 stars 41 forks source link

Pint 0.21 broke pint_pandas initialization #175

Closed vasilisniaouris closed 1 year ago

vasilisniaouris commented 1 year ago

Hello,

I just upgraded to pint 0.21 and the command import pint_pandas returns the following error:

Traceback (most recent call last):
   ...
AttributeError:` module 'pint.compat' has no attribute 'upcast_types'. Did you mean: 'is_upcast_type'?

Seems like line 994 of pint_array (compat.upcast_types.append(PintArray)) is the issue.

andrewgsavage commented 1 year ago

fixed by #171