pandas.Interval.closed

Interval.closed

Whether the interval is closed on the left-side, right-side, both or neither.