pandas.Interval.closed#
- Interval.closed#
String describing the inclusive side the intervals.
Either
left,right,bothorneither.See also
Interval.closed_leftCheck if the interval is closed on the left side.
Interval.closed_rightCheck if the interval is closed on the right side.
Interval.open_leftCheck if the interval is open on the left side.
Interval.open_rightCheck if the interval is open on the right side.
Examples
>>> interval = pd.Interval(left=1, right=2, closed='left') >>> interval Interval(1, 2, closed='left') >>> interval.closed 'left'