pandas.api.types.is_dtype_equal

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

Compare two inputs using pandas dtype equivalence.

Call syntax

pd.api.types.is_dtype_equal(source, target)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
source Required
Positional or keyword
type or str
target Required
Positional or keyword
type or str

Supply the labels to align or match against.

Returns

boolean