pandas.Interval.mid#

Interval.mid#

Return the midpoint of the Interval.

See also

Interval.left

Return the left bound for the interval.

Interval.right

Return the right bound for the interval.

Interval.length

Return the length of the interval.

Examples

>>> iv = pd.Interval(0, 5)
>>> iv.mid
2.5