这里的思路是,首先把两个IntervalIndex转换成list,然后用pd.IntervalIndex(list)生成拼接IntervalIndex
#Pandas中拼接两个IntervalIndex
ii1 = pd.interval_range(start=min2, end=max2,freq=5)
ii2 = pd.IntervalIndex.from_tuples([tuple(i) for i in missing_interval])
a = ii2.tolist()
a.extend(ii1.tolist())
ii = pd.IntervalIndex(a)