def fastmsgpack_default(ob): # Compatibility shim until this is fixed in pandas # See: https://github.com/pydata/pandas/pull/12307 if ob is pd.NaT: return {'typ': 'nat'} return pd_msgpack_default(ob)