Skip to content

Commit

Permalink
Fix logic bug introduced in #14730 (#14742)
Browse files Browse the repository at this point in the history
The removal of `valid_count` on columns in #14730 had one logic bug, fixed here.

Authors:
  - Lawrence Mitchell (https://github.com/wence-)

Approvers:
  - Matthew Roeschke (https://github.com/mroeschke)
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: #14742
  • Loading branch information
wence- authored Jan 12, 2024
1 parent 27b106f commit 5c78b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/column/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,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
Expand Down

0 comments on commit 5c78b7e

Please sign in to comment.