We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 880dcb7 commit f069158Copy full SHA for f069158
pandas/core/dtypes/common.py
@@ -700,7 +700,7 @@ def _is_dtype_union_equal(source, target):
700
"""
701
source = _get_dtype(source)
702
target = _get_dtype(target)
703
- if source == 'category' and target == 'category':
+ if is_categorical_dtype(source) and is_categorical_dtype(target):
704
# ordered False for both
705
return source.ordered is target.ordered
706
else:
0 commit comments