Closed jparal closed 2 years ago
I am wondering if anyone has a quick workaround for pickling of PintArray. I am getting an error running following snippet (Python 3.8, pint-pandas 0.2):
PintArray
import pickle, pint_pandas pickle.dumps(pint_pandas.PintArray([1.], dtype="m")) # AttributeError: Can't pickle local object 'build_quantity_class.<locals>.Quantity'
It is also possible I am doing something totally wrong. Any ideas? Thx
A quick update, the pint-pandas==0.1.0 works as expected.
pint-pandas==0.1.0
I am wondering if anyone has a quick workaround for pickling of
PintArray
. I am getting an error running following snippet (Python 3.8, pint-pandas 0.2):It is also possible I am doing something totally wrong. Any ideas? Thx