pandas.Interval.mid — pandas 2.2.3 documentation (original) (raw)

Interval.mid#

Return the midpoint of the Interval.

Examples

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