@convert.register((pd.Timestamp, pd.Timedelta), float)
def nan_to_nat(fl, **kwargs):
    try:
        if np.isnan(fl):
            # Only nan->nat edge
            return pd.NaT
    except __HOLE__:
        pass
    raise NotImplementedError()
dataset/ETHPy150Open blaze/odo/odo/backends/pandas.py/nan_to_nat