classmethod IntervalArray.from_tuples(data, closed='right', copy=False, dtype=None)
[source]
Construct an IntervalArray from an array-like of tuples
Parameters: |
|
---|---|
Returns: |
|
See also
interval_range
IntervalArray.from_arrays
IntervalArray.from_breaks
>>> pd.arrays.IntervalArray.from_tuples([(0, 1), (1, 2)]) IntervalArray([(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.arrays.IntervalArray.from_tuples.html