pandas.IntervalDtype

class pandas.IntervalDtype(subtype=None, inclusive=None, closed=_NoDefault.no_default)[source]

An ExtensionDtype for Interval data.

This is not an actual numpy dtype, but a duck type.

Parameters
subtypestr, np.dtype

The dtype of the Interval bounds.

Examples

>>> pd.IntervalDtype(subtype='int64', inclusive='both')
interval[int64, both]

Attributes

subtype

The dtype of the Interval bounds.

Methods

None