You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When EAs go through cython routines, they need to be converted to numpy arrays (and dtypes) first and then recast to the correct EA. This recast may require specific logic. For example, DatetimeTZDtypes need to be localized to UTC first before applying the dtype.
The proposal is for (optional) internal _serialize and _from_serialized methods that defines specific recasting logic for the EA. @jreback proposed something like:
serialized, dtype = EA._serialize()
original = EA._from_serialize(serialized, dtype)