classmethod IntervalIndex.from_tuples(data, closed='right', name=None, copy=False, dtype=None)
[source]
Construct an IntervalIndex from an array-like of tuples
Parameters: |
|
---|---|
Returns: |
|
See also
interval_range
IntervalIndex.from_arrays
IntervalIndex.from_breaks
>>> pd.IntervalIndex.from_tuples([(0, 1), (1, 2)]) IntervalIndex([(0, 1], (1, 2]], closed='right', dtype='interval[int64]')
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.IntervalIndex.from_tuples.html