cudf.IntervalIndex#
- class cudf.IntervalIndex(data, closed=None, dtype=None, copy=False, name=None)#
Immutable index of intervals that are closed on the same side.
- Parameters:
- dataarray-like (1-dimensional)
Array-like containing Interval objects from which to build the IntervalIndex.
- closed{“left”, “right”, “both”, “neither”}, default “right”
Whether the intervals are closed on the left-side, right-side, both or neither.
- dtypedtype or None, default None
If None, dtype will be inferred.
- copybool, default False
Copy the input data.
- nameobject, optional
Name to be stored in the index.
- Returns:
- IntervalIndex
Attributes
Return a CuPy representation of the DataFrame.
Methods
from_breaks
([closed, name, copy, dtype])Construct an IntervalIndex from an array of splits.
get_loc
(key[, method, tolerance])Get integer location, slice or boolean mask for requested label.