pandas.IntervalDtype.subtype#

property IntervalDtype.subtype[source]#

The dtype of the Interval bounds.

Each interval in an IntervalArray has the same data type for its left and right bounds. subtype returns that dtype.

See also

IntervalDtype

An ExtensionDtype for Interval data.

Examples

>>> dtype = pd.IntervalDtype(subtype="int64", closed="both")
>>> dtype.subtype
dtype('int64')