8  Intervals (IntervalSet)

import pynapple as nap
epochs = nap.IntervalSet(
    start=[1, 3, 7],
    end=[2, 5, 9]
)
epochs
  index    start    end
      0        1      2
      1        3      5
      2        7      9
shape: (3, 2), time unit: sec.