combine_continuous_intervals
- combine_continuous_intervals(intervals, threshold=0)[source]
Combines continuous (or overlapping) intervals.
- Parameters:
intervals (IntervalIndex) – A list of (possibly) non-continuous intervals.
threshold (interval delta, default 0) – The threshold used to determine continuity. The threshold type should reflect the type of the intervals, e.g. int for int intervals and timedelta for datetime intervals.
- Returns:
Containing non-overlapping intervals with a gap larger than threshold. The length of the returned index is smaller or equal to the input index.
- Return type:
IntervalIndex