pandas.arrays.IntervalArray.length#
- property IntervalArray.length[source]#
Return an Index with entries denoting the length of each Interval.
Examples
>>> interv_arr = pd.arrays.IntervalArray([pd.Interval(0, 1), pd.Interval(1, 5)]) >>> interv_arr <IntervalArray> [(0, 1], (1, 5]] Length: 2, dtype: interval[int64, right] >>> interv_arr.length Index([1, 4], dtype='int64')