find_continuous_intervals
- find_continuous_intervals(intervals, threshold=0)[source]
Splits a list of intervals into multiple lists of continuous 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:
A list of continuous intervals.
- Return type:
List, of type IntervalIndex