pandas.arrays.IntervalArray.to_tuples
pandas 3.1.1 · Arrays, scalars, and data types · method
Expose each interval as a pair containing its left and right edge.
Call syntax
IntervalArray.to_tuples(na_tuple=True)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
na_tuple |
Optional Positional or keyword Default True |
bool |
Returns
ndarray or Index