cudf.IntervalIndex#

class cudf.IntervalIndex(data, *args, **kwargs)[source]#

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.

Attributes

values

Return a CuPy representation of the DataFrame.

Methods

from_breaks(breaks[, closed, name, copy, dtype])

Construct an IntervalIndex from an array of splits.

get_loc(key)

Get integer location, slice or boolean mask for requested label.

Returns:
IntervalIndex