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