Construct from two arrays defining the left and right bounds.
Left bounds for each interval.
Right bounds for each interval.
Whether the intervals are closed on the left-side, right-side, both
Copy the data.
If None, dtype will be inferred.
New in version 0.23.0.
When a value is missing in only one of left or right.
When a value in left is greater than the corresponding value
Function to create a fixed frequency IntervalIndex.
Construct an IntervalArray from an array of splits.
Construct an IntervalArray from an array-like of tuples.
Each element of left must be less than or equal to the right
element at the same position. If an element is missing, it must be
missing in both left and right. A TypeError is raised when
using an unsupported type for left or right. At the moment,
‘category’, ‘object’, and ‘string’ subtypes are not supported.
>>> pd.arrays.IntervalArray.from_arrays([0, 1, 2], [1, 2, 3])
[(0, 1], (1, 2], (2, 3]]
Length: 3, closed: right, dtype: interval[int64]