pandas.api.types.is_interval_dtype

pandas 3.1.1 · Arrays, scalars, and data types · function

Check whether an input has interval dtype. Use isinstance(dtype, pd.IntervalDtype) for new code.

Call syntax

pd.api.types.is_interval_dtype(arr_or_dtype)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
arr_or_dtype Required
Positional or keyword
array-like or dtype

Provide an array or dtype specification for the type check.

Returns

boolean