cudf.core.dtypes.IntervalDtype#

class cudf.core.dtypes.IntervalDtype(
subtype: None | Dtype = None,
closed: Literal['left', 'right', 'neither', 'both', None] = None,
)[source]#

A data type for Interval data.

Parameters:
subtype: str, np.dtype

The dtype of the Interval bounds.

closed: {‘right’, ‘left’, ‘both’, ‘neither’}, default ‘right’

Whether the interval is closed on the left-side, right-side, both or neither. See the Notes for more detailed explanation.

Attributes

fields

Returns an ordered dict of column name and dtype key-value.

type

The scalar type for the array, e.g. int.

Methods

from_arrow

to_arrow