From d8c71f77ed1918b9f4239efc4e16912c4253cf79 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Thu, 11 Jan 2024 15:16:56 +0000 Subject: [PATCH] Fix logic bug introduced in #14730 --- python/cudf/cudf/core/column/categorical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cudf/cudf/core/column/categorical.py b/python/cudf/cudf/core/column/categorical.py index 59fd4631067..30a70759db4 100644 --- a/python/cudf/cudf/core/column/categorical.py +++ b/python/cudf/cudf/core/column/categorical.py @@ -1373,7 +1373,7 @@ def _concat( # Find the first non-null column: head = next( - (obj for obj in objs if not obj.null_count != len(obj)), objs[0] + (obj for obj in objs if obj.null_count != len(obj)), objs[0] ) # Combine and de-dupe the categories