Skip to main content
`Ctrl`+`K`

# pandas.arrays.IntervalArray.mid

property IntervalArray.mid

  Return the midpoint of each Interval in the IntervalArray as an Index.

  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.mid
      Index([0.5, 3.0], dtype='float64')