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 6dc92ad commit 9739c1dCopy full SHA for 9739c1d
pandas/core/dtypes/concat.py
@@ -284,8 +284,7 @@ def _maybe_unwrap(x):
284
if all(c.ordered for c in to_union):
285
msg = "to union ordered Categoricals, all categories must be the same"
286
raise TypeError(msg)
287
- else:
288
- raise TypeError("Categorical.ordered must be the same")
+ raise TypeError("Categorical.ordered must be the same")
289
290
if ignore_order:
291
ordered = False
0 commit comments