deserialize_interval_index
- deserialize_interval_index(serialized)[source]
Deserialize a serialized interval index.
An interval index can be represented in two different ways:
- range
If the intervals has a fixed frequency, the only necessary information is the start, end and freq parameters. This is the most compact representation.
- arrays
Otherwise, all intervals are stored in left and right arrays.
- Parameters:
serialized (dict) – The serialized interval index.
- Returns:
The deserialized interval index.
- Return type:
IntervalIndex
- Raises:
ValueError – If the deserialization fails.