pandas.arrays.IntervalArray.set_closed
pandas 3.1.1 · Arrays, scalars, and data types · method
Change which interval endpoints are included without moving their boundaries.
Call syntax
IntervalArray.set_closed(closed)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
closed |
Required Positional or keyword |
{'left', 'right', 'both', 'neither'} Choose which interval boundaries are included. |
Returns
IntervalArray