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