pandas.api.types.is_datetime64tz_dtype

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

Check for a timezone-aware datetime dtype. Use isinstance(dtype, pd.DatetimeTZDtype) for new code.

Call syntax

pd.api.types.is_datetime64tz_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