Skip to content

Commit f069158

Browse files
committed
fixup
1 parent 880dcb7 commit f069158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def _is_dtype_union_equal(source, target):
700700
"""
701701
source = _get_dtype(source)
702702
target = _get_dtype(target)
703-
if source == 'category' and target == 'category':
703+
if is_categorical_dtype(source) and is_categorical_dtype(target):
704704
# ordered False for both
705705
return source.ordered is target.ordered
706706
else:

0 commit comments

Comments
 (0)