pandas.IntervalIndex.to_tuples

pandas 3.1.1 · Index objects · method

Expose each interval as a pair containing its left and right edge.

Call syntax

IntervalIndex.to_tuples(na_tuple=True)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
na_tuple Optional
Positional or keyword
Default True
bool

Returns

Index