Representing discrete intervals using IntervalIndex